Skip to content

Commit

Permalink
Nix build system
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsZauberer committed May 17, 2024
1 parent 7f9b607 commit a8bcb97
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/target
.idea
stats.toml

# Build paths
result
/target
13 changes: 13 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{pkgs ? import <nixpkgs> {}}: let
manifest = (pkgs.lib.importTOML ./Cargo.toml).package;
in
pkgs.rustPlatform.buildRustPackage {
pname = manifest.name;
version = manifest.version;
cargoLock.lockFile = ./Cargo.lock;
src = pkgs.lib.cleanSource ./.;
nativeBuildInputs = [
];
buildInputs = [
];
}
10 changes: 10 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
let
pkgs = import <nixpkgs> {};
in
pkgs.mkShell {
name = "crabtype";
nativeBuildInputs = [
];
buildInputs = [
];
}

0 comments on commit a8bcb97

Please sign in to comment.