diff options
Diffstat (limited to 'tests/lang/eval-okay-delayed-with.nix')
-rw-r--r-- | tests/lang/eval-okay-delayed-with.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-delayed-with.nix b/tests/lang/eval-okay-delayed-with.nix new file mode 100644 index 000000000..82934d6a9 --- /dev/null +++ b/tests/lang/eval-okay-delayed-with.nix @@ -0,0 +1,26 @@ +let + pkgs_ = with pkgs; { + a = derivation { + name = "a"; + system = builtins.currentSystem; + builder = "/bin/sh"; + args = [ "-c" "touch $out" ]; + inherit b; + }; + + b = derivation { + name = "b"; + system = builtins.currentSystem; + builder = "/bin/sh"; + args = [ "-c" "touch $out" ]; + }; + + c = b; + }; + + packageOverrides = p: { + b = derivation (p.b.drvAttrs // { name = "b-overridden"; }); + }; + + pkgs = pkgs_ // (packageOverrides pkgs_); +in pkgs.a.b.name |