Skip to content

Commit b3ad661

Browse files
committed
nixos/lib/test-driver: Prevent unnecessary rebuilds
E.g. when only Nix files change
1 parent ce53448 commit b3ad661

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

nixos/lib/test-driver/default.nix

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,20 @@
1313
, extraPythonPackages ? (_ : [])
1414
, nixosTests
1515
}:
16-
16+
let
17+
fs = lib.fileset;
18+
in
1719
python3Packages.buildPythonApplication {
1820
pname = "nixos-test-driver";
1921
version = "1.1";
20-
src = ./.;
22+
src = fs.toSource {
23+
root = ./.;
24+
fileset = fs.unions [
25+
./pyproject.toml
26+
./test_driver
27+
./extract-docstrings.py
28+
];
29+
};
2130
pyproject = true;
2231

2332
propagatedBuildInputs = [

0 commit comments

Comments
 (0)