ref(nix): make local path reproducible

This commit is contained in:
b4mbus
2024-06-09 00:48:41 +02:00
parent f90a9225e0
commit 81306e93c6

View File

@@ -57,7 +57,10 @@
.buildRustPackage { .buildRustPackage {
pname = packageToml.name; pname = packageToml.name;
inherit (packageToml) version; inherit (packageToml) version;
src = ./.; src = builtins.path {
path = ./.;
inherit (packageToml) name;
};
cargoLock.lockFile = ./Cargo.lock; cargoLock.lockFile = ./Cargo.lock;
buildInputs = buildDeps rust; buildInputs = buildDeps rust;
dontUseCargoParallelTests = true; dontUseCargoParallelTests = true;