nix: backend limit included files

This commit is contained in:
jopejoe1 2024-07-10 18:54:29 +02:00
parent f8e2b87e9c
commit 813260d029

View file

@ -8,7 +8,15 @@ rustPlatform.buildRustPackage rec {
pname = "backend";
version = "0.1";
src = ../.;
src = lib.fileset.toSource {
root = ../.;
fileset = lib.fileset.unions [
../Cargo.lock
../Cargo.toml
../crates
../.cargo
];
};
cargoLock = {
lockFile = ../Cargo.lock;