forked from lix-project/lix
remote-store test: Break out IFD expression into a separate file
This commit is contained in:
parent
ee439734e9
commit
9cb287657b
10
tests/functional/ifd.nix
Normal file
10
tests/functional/ifd.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
with import ./config.nix;
|
||||||
|
import (
|
||||||
|
mkDerivation {
|
||||||
|
name = "foo";
|
||||||
|
bla = import ./dependencies.nix {};
|
||||||
|
buildCommand = "
|
||||||
|
echo \\\"hi\\\" > $out
|
||||||
|
";
|
||||||
|
}
|
||||||
|
)
|
|
@ -19,18 +19,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Test import-from-derivation through the daemon.
|
# Test import-from-derivation through the daemon.
|
||||||
[[ $(nix eval --impure --raw --expr '
|
[[ $(nix eval --impure --raw --file ./ifd.nix) = hi ]]
|
||||||
with import ./config.nix;
|
|
||||||
import (
|
|
||||||
mkDerivation {
|
|
||||||
name = "foo";
|
|
||||||
bla = import ./dependencies.nix {};
|
|
||||||
buildCommand = "
|
|
||||||
echo \\\"hi\\\" > $out
|
|
||||||
";
|
|
||||||
}
|
|
||||||
)
|
|
||||||
') = hi ]]
|
|
||||||
|
|
||||||
storeCleared=1 NIX_REMOTE_=$NIX_REMOTE $SHELL ./user-envs.sh
|
storeCleared=1 NIX_REMOTE_=$NIX_REMOTE $SHELL ./user-envs.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue