mirror of
https://github.com/NixOS/nix
synced 2025-07-09 16:13:54 +02:00
Rename import-derivation -> import-from-derivation
This commit is contained in:
parent
3fb6605d3d
commit
ee3f0b7a8b
8 changed files with 8 additions and 8 deletions
|
@ -1,26 +0,0 @@
|
|||
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
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue