mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
* toFile: added an additional argument to specify the store path
suffix, e.g., `builtins.toFile "builder.sh" "..."'. * toFile: handle references to other files correctly.
This commit is contained in:
parent
84e6c43e85
commit
d20c3011a0
4 changed files with 41 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
let {
|
||||
|
||||
# Test inline source file definitions.
|
||||
builder = builtins.toFile "
|
||||
builder = builtins.toFile "builder.sh" "
|
||||
mkdir $out
|
||||
|
||||
cat > $out/program <<EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue