aboutsummaryrefslogtreecommitdiff
path: root/tests/remote-store.sh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-02-25 20:35:11 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-02-25 21:51:05 +0000
commitca0994819d68aee26a2906c37a47ae609ac46c4c (patch)
treec96805c008c22926b1eaadc340a99323d53be532 /tests/remote-store.sh
parent10e81bf871551901ff0383bdede0f79325e93867 (diff)
parentc189031e8be0530d73a817571ad7f81ad5eedce6 (diff)
Merge remote-tracking branch 'upstream/master' into path-info
Diffstat (limited to 'tests/remote-store.sh')
-rw-r--r--tests/remote-store.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/remote-store.sh b/tests/remote-store.sh
index 3a61946f9..f7ae1a2ed 100644
--- a/tests/remote-store.sh
+++ b/tests/remote-store.sh
@@ -7,6 +7,20 @@ nix --store ssh-ng://localhost?remote-store=$TEST_ROOT/other-store doctor
startDaemon
+# Test import-from-derivation through the daemon.
+[[ $(nix eval --impure --raw --expr '
+ 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
nix-store --dump-db > $TEST_ROOT/d1