1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

Use $<attr>Path instead of $<attr> for passAsFile

This commit is contained in:
Eelco Dolstra 2015-02-17 16:42:54 +01:00
parent a70d275f3d
commit bd91064150
3 changed files with 13 additions and 7 deletions

View file

@ -10,7 +10,7 @@ mkDerivation {
passAsFile = [ \"foo\" ];
foo = [ \"xyzzy\" ];
builder = builtins.toFile \"builder.sh\" ''
[ \"\$(cat \$foo)\" = xyzzy ]
[ \"\$(cat \$fooPath)\" = xyzzy ]
touch \$out
'';
}