Minimal nix package definition for project
This commit is contained in:
parent
33d279ef26
commit
dd43867391
3 changed files with 28 additions and 4 deletions
21
default.nix
Normal file
21
default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "compiler-course";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "VSinerva";
|
||||
repo = pname;
|
||||
ref = "main";
|
||||
hash = lib.fakeHash; # Use this to get the new hash
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
};
|
||||
}
|
Reference in a new issue