mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
tests.nixpkgs-check-by-name: Limit source files
To prevent more rebuilds than necessary
This commit is contained in:
parent
a48d8eafc6
commit
64ad8b6836
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user