nixos/lib/test-driver: Prevent unnecessary rebuilds
E.g. when only Nix files change
This commit is contained in:
@@ -13,11 +13,20 @@
|
|||||||
, extraPythonPackages ? (_ : [])
|
, extraPythonPackages ? (_ : [])
|
||||||
, nixosTests
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
fs = lib.fileset;
|
||||||
|
in
|
||||||
python3Packages.buildPythonApplication {
|
python3Packages.buildPythonApplication {
|
||||||
pname = "nixos-test-driver";
|
pname = "nixos-test-driver";
|
||||||
version = "1.1";
|
version = "1.1";
|
||||||
src = ./.;
|
src = fs.toSource {
|
||||||
|
root = ./.;
|
||||||
|
fileset = fs.unions [
|
||||||
|
./pyproject.toml
|
||||||
|
./test_driver
|
||||||
|
./extract-docstrings.py
|
||||||
|
];
|
||||||
|
};
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
|||||||
Reference in New Issue
Block a user