aboutsummaryrefslogtreecommitdiff
path: root/tests/flakes.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-12-13 20:54:43 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-12-13 20:59:33 +0100
commit32a62b0d25116ffe0d66ecaf6a479fbc915d196e (patch)
treed82dc384c14d73c6561b0b538f901ca5a69f9180 /tests/flakes.sh
parent46d86e06ba54dc708fa8fd7d0109845fa2ac402e (diff)
Re-allow inputs.x.url = "/path/to/file"
Diffstat (limited to 'tests/flakes.sh')
-rw-r--r--tests/flakes.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/flakes.sh b/tests/flakes.sh
index 20966ab2a..942d07010 100644
--- a/tests/flakes.sh
+++ b/tests/flakes.sh
@@ -249,6 +249,14 @@ cat > $flake3Dir/flake.nix <<EOF
url = git+file://$nonFlakeDir;
flake = false;
};
+ nonFlakeFile = {
+ url = path://$nonFlakeDir/README.md;
+ flake = false;
+ };
+ nonFlakeFile2 = {
+ url = "$nonFlakeDir/README.md";
+ flake = false;
+ };
};
description = "Fnord";
@@ -265,6 +273,8 @@ cat > $flake3Dir/flake.nix <<EOF
dummy2 = builtins.readFile (builtins.path { name = "source"; path = inputs.flake1; filter = path: type: baseNameOf path == "simple.nix"; } + "/simple.nix");
buildCommand = ''
cat \${inputs.nonFlake}/README.md > \$out
+ [[ \$(cat \${inputs.nonFlake}/README.md) = \$(cat \${inputs.nonFlakeFile}) ]]
+ [[ \${inputs.nonFlakeFile} = \${inputs.nonFlakeFile2} ]]
'';
};
};