aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-fail-addDrvOutputDependencies-multi-elem-context.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/lang/eval-fail-addDrvOutputDependencies-multi-elem-context.nix')
-rw-r--r--tests/functional/lang/eval-fail-addDrvOutputDependencies-multi-elem-context.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/functional/lang/eval-fail-addDrvOutputDependencies-multi-elem-context.nix b/tests/functional/lang/eval-fail-addDrvOutputDependencies-multi-elem-context.nix
new file mode 100644
index 000000000..dbde264df
--- /dev/null
+++ b/tests/functional/lang/eval-fail-addDrvOutputDependencies-multi-elem-context.nix
@@ -0,0 +1,18 @@
+let
+ drv0 = derivation {
+ name = "fail";
+ builder = "/bin/false";
+ system = "x86_64-linux";
+ outputs = [ "out" "foo" ];
+ };
+
+ drv1 = derivation {
+ name = "fail-2";
+ builder = "/bin/false";
+ system = "x86_64-linux";
+ outputs = [ "out" "foo" ];
+ };
+
+ combo-path = "${drv0.drvPath}${drv1.drvPath}";
+
+in builtins.addDrvOutputDependencies combo-path