aboutsummaryrefslogtreecommitdiff
path: root/tests/readfile-context.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/readfile-context.nix')
-rw-r--r--tests/readfile-context.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/readfile-context.nix b/tests/readfile-context.nix
new file mode 100644
index 000000000..600036a94
--- /dev/null
+++ b/tests/readfile-context.nix
@@ -0,0 +1,19 @@
+with import ./config.nix;
+
+let
+
+ input = import ./simple.nix;
+
+ dependent = mkDerivation {
+ name = "dependent";
+ builder = ./readfile-context.builder.sh;
+ input = "${input}/hello";
+ };
+
+ readDependent = mkDerivation {
+ name = "read-dependent";
+ builder = ./readfile-context.builder.sh;
+ input = builtins.readFile dependent;
+ };
+
+in readDependent