aboutsummaryrefslogtreecommitdiff
path: root/tests/dyn-drv/eval-outputOf.sh
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien+git@xlumurb.eu>2023-08-23 12:00:00 +0000
committerGuillaume Girol <symphorien+git@xlumurb.eu>2023-08-24 11:37:24 +0200
commit925a444b925590df90e19d3c0071936f87d2b43d (patch)
tree085a36dc6f2972ad5ac676d95231ec29b027a8ea /tests/dyn-drv/eval-outputOf.sh
parent6459a1c7ad1ad1a88fae42f9737e969c6ae89679 (diff)
add nix-store --query --valid-derivers command
notably useful when nix-store --query --deriver returns a non-existing path. Co-authored-by: Felix Uhl <iFreilicht@users.noreply.github.com>
Diffstat (limited to 'tests/dyn-drv/eval-outputOf.sh')
-rw-r--r--tests/dyn-drv/eval-outputOf.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dyn-drv/eval-outputOf.sh b/tests/dyn-drv/eval-outputOf.sh
index 99d917c06..9467feb8d 100644
--- a/tests/dyn-drv/eval-outputOf.sh
+++ b/tests/dyn-drv/eval-outputOf.sh
@@ -13,14 +13,14 @@ nix --experimental-features 'nix-command' eval --impure --expr \
# the future so it does work, but there are some design questions to
# resolve first. Adding a test so we don't liberalise it by accident.
expectStderr 1 nix --experimental-features 'nix-command dynamic-derivations' eval --impure --expr \
- 'builtins.outputOf (import ../dependencies.nix) "out"' \
+ 'builtins.outputOf (import ../dependencies.nix {}) "out"' \
| grepQuiet "value is a set while a string was expected"
# Test that "DrvDeep" string contexts are not supported at this time
#
# Like the above, this is a restriction we could relax later.
expectStderr 1 nix --experimental-features 'nix-command dynamic-derivations' eval --impure --expr \
- 'builtins.outputOf (import ../dependencies.nix).drvPath "out"' \
+ 'builtins.outputOf (import ../dependencies.nix {}).drvPath "out"' \
| grepQuiet "has a context which refers to a complete source and binary closure. This is not supported at this time"
# Test using `builtins.outputOf` with static derivations