mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
remote-store test: Break out IFD expression into a separate file
This commit is contained in:
parent
ee439734e9
commit
9cb287657b
2 changed files with 11 additions and 12 deletions
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