forked from DGNum/colmena
default.nix: Use cargoLock.lockFile
Support for directly passing the Cargo.lock was added in <https://github.com/NixOS/nixpkgs/pull/122158>.
This commit is contained in:
parent
db563caad9
commit
886b4c9dea
1 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,10 @@ in rustPlatform.buildRustPackage {
|
||||||
src = ./.;
|
src = ./.;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
cargoSha256 = "sha256-/108zjC937AX5HVTGfHD6DRh3abRdCWDXpOP1kIple0=";
|
|
||||||
|
cargoLock = {
|
||||||
|
lockFile = ./Cargo.lock;
|
||||||
|
};
|
||||||
|
|
||||||
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||||
mkdir completions
|
mkdir completions
|
||||||
|
|
Loading…
Add table
Reference in a new issue