From 32ce9d0ff40dda8670a111d9b16dabf4857741d0 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Fri, 3 Sep 2021 13:19:29 +0200 Subject: [PATCH] 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. --- test/run-tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/run-tests.sh b/test/run-tests.sh index 241f142..ddf3eb0 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -165,8 +165,7 @@ debug() { } evalTest() { - nix eval --raw "($(vmTestNixExpr)).outPath" - echo # nix eval doesn't print a newline + nix-instantiate --eval -E "($(vmTestNixExpr)).outPath" } instantiate() {