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:
parent
3fb6605d3d
commit
ee3f0b7a8b
8 changed files with 8 additions and 8 deletions
26
tests/functional/import-from-derivation.nix
Normal file
26
tests/functional/import-from-derivation.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue