diff options
Diffstat (limited to 'nixos/tests/replace-dependencies/default.nix')
-rw-r--r-- | nixos/tests/replace-dependencies/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/replace-dependencies/default.nix b/nixos/tests/replace-dependencies/default.nix new file mode 100644 index 000000000000..ce0013a868c7 --- /dev/null +++ b/nixos/tests/replace-dependencies/default.nix @@ -0,0 +1,19 @@ +import ../make-test-python.nix ( + { pkgs, ... }: + { + name = "replace-dependencies"; + meta.maintainers = with pkgs.lib.maintainers; [ alois31 ]; + + nodes.machine = + { ... }: + { + nix.settings.experimental-features = [ "ca-derivations" ]; + system.extraDependencies = [ pkgs.stdenvNoCC ]; + }; + + testScript = '' + start_all() + machine.succeed("nix-build --option substitute false ${pkgs.path}/nixos/tests/replace-dependencies/guest.nix") + ''; + } +) |