1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

Rename import-derivation -> import-from-derivation

This commit is contained in:
Eelco Dolstra 2024-09-17 16:55:44 +02:00
parent 3fb6605d3d
commit ee3f0b7a8b
8 changed files with 8 additions and 8 deletions

View file

@ -0,0 +1,26 @@
with import ./config.nix;
let
bar = mkDerivation {
name = "bar";
builder = builtins.toFile "builder.sh"
''
echo 'builtins.add 123 456' > $out
'';
};
value =
# Test that pathExists can check the existence of /nix/store paths
assert builtins.pathExists bar;
import bar;
in
mkDerivation {
name = "foo";
builder = builtins.toFile "builder.sh"
''
echo -n FOO${toString value} > $out
'';
}