2021-11-01 00:06:03 +01:00
|
|
|
{ pkgs ? import ../../../.. { config = { }; overlays = [ ]; } }:
|
2021-05-19 01:02:50 +02:00
|
|
|
let
|
|
|
|
inherit (pkgs)
|
|
|
|
figlet
|
2021-10-15 17:22:37 +02:00
|
|
|
zlib
|
2021-05-19 01:02:50 +02:00
|
|
|
hello
|
|
|
|
writeText
|
2021-11-01 00:06:03 +01:00
|
|
|
runCommand
|
2021-05-19 01:02:50 +02:00
|
|
|
;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
hello = hello;
|
|
|
|
figlet = figlet;
|
2021-10-15 17:22:37 +02:00
|
|
|
zlib = zlib;
|
|
|
|
zlib-dev = zlib.dev;
|
2021-05-19 01:02:50 +02:00
|
|
|
norefs = writeText "hi" "hello";
|
2021-10-15 17:22:37 +02:00
|
|
|
norefsDup = writeText "hi" "hello";
|
2021-05-19 01:02:50 +02:00
|
|
|
helloRef = writeText "hi" "hello ${hello}";
|
2021-10-15 17:22:37 +02:00
|
|
|
helloRefDup = writeText "hi" "hello ${hello}";
|
|
|
|
path = ./invoke-writeReferencesToFile.nix;
|
2021-11-01 00:06:03 +01:00
|
|
|
pathLike.outPath = ./invoke-writeReferencesToFile.nix;
|
2021-05-19 01:02:50 +02:00
|
|
|
helloFigletRef = writeText "hi" "hello ${hello} ${figlet}";
|
2021-11-01 00:06:03 +01:00
|
|
|
selfRef = runCommand "self-ref-1" {} "echo $out >$out";
|
|
|
|
selfRef2 = runCommand "self-ref-2" {} ''echo "${figlet}, $out" >$out'';
|
2021-06-12 17:29:27 +02:00
|
|
|
inherit (pkgs)
|
|
|
|
emptyFile
|
|
|
|
emptyDirectory
|
|
|
|
;
|
2021-05-19 01:02:50 +02:00
|
|
|
}
|