tests.nixpkgs-check-by-name: Limit source files

To prevent more rebuilds than necessary
This commit is contained in:
Silvan Mosberger 2024-01-16 20:39:33 +01:00
parent a48d8eafc6
commit 64ad8b6836

View File

@ -26,10 +26,20 @@ let
nix-store --init
'';
fs = lib.fileset;
package =
rustPlatform.buildRustPackage {
name = "nixpkgs-check-by-name";
src = lib.cleanSource ./.;
src = fs.toSource {
root = ./.;
fileset = fs.unions [
./Cargo.lock
./Cargo.toml
./src
./tests
];
};
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [
nix