1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 21:23:56 +02:00

* Add a test for importing derivations.

This commit is contained in:
Eelco Dolstra 2012-01-26 13:04:50 +00:00
parent 330df4b4db
commit 4c9fdd2cd6
3 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,23 @@
with import ./config.nix;
let
bar = mkDerivation {
name = "bar";
builder = builtins.toFile "builder.sh"
''
echo 'builtins.add 123 456' > $out
'';
};
value = import bar;
in
mkDerivation {
name = "foo";
builder = builtins.toFile "builder.sh"
''
echo -n FOO${toString value} > $out
'';
}