2015-02-17 14:42:15 +01:00
|
|
|
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\" ''
|
2015-02-17 16:42:54 +01:00
|
|
|
[ \"\$(cat \$fooPath)\" = xyzzy ]
|
2015-02-17 14:42:15 +01:00
|
|
|
touch \$out
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
")
|