run-tests: fix 'eval' command for newer versions of nix
There's no common `nix` command argument syntax for eval'ing a nix expression that supports both older and newer (flake support) versions of nix. So fall back to nix-instantiate.
This commit is contained in:
parent
926f1febb7
commit
32ce9d0ff4
@ -165,8 +165,7 @@ debug() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
evalTest() {
|
evalTest() {
|
||||||
nix eval --raw "($(vmTestNixExpr)).outPath"
|
nix-instantiate --eval -E "($(vmTestNixExpr)).outPath"
|
||||||
echo # nix eval doesn't print a newline
|
|
||||||
}
|
}
|
||||||
|
|
||||||
instantiate() {
|
instantiate() {
|
||||||
|
Loading…
Reference in New Issue
Block a user