about summary refs log blame commit diff
path: root/tests/pass-as-file.sh
blob: 3dfe10baa235334b949a07e45d608ef8e67008e4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                             
                                     



               
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\" ''
    [ \"\$(cat \$fooPath)\" = xyzzy ]
    touch \$out
  '';
}
")