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:
Erik Arvstedt 2021-09-03 13:19:29 +02:00
parent 926f1febb7
commit 32ce9d0ff4
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -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() {