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:
parent
a70d275f3d
commit
bd91064150
3 changed files with 13 additions and 7 deletions
|
@ -10,7 +10,7 @@ mkDerivation {
|
|||
passAsFile = [ \"foo\" ];
|
||||
foo = [ \"xyzzy\" ];
|
||||
builder = builtins.toFile \"builder.sh\" ''
|
||||
[ \"\$(cat \$foo)\" = xyzzy ]
|
||||
[ \"\$(cat \$fooPath)\" = xyzzy ]
|
||||
touch \$out
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue