0
0
Fork 0
forked from lix-project/lix
lix/tests/pass-as-file.sh

18 lines
300 B
Bash
Raw Normal View History

source common.sh
clearStore
outPath=$(nix-build --no-out-link -E "
with import ./config.nix;
mkDerivation {
name = \"pass-as-file\";
passAsFile = [ \"foo\" ];
foo = [ \"xyzzy\" ];
builder = builtins.toFile \"builder.sh\" ''
[ \"\$(cat \$fooPath)\" = xyzzy ]
touch \$out
'';
}
")