From c84a2cbbd1aff1edbc3133d0f79b5ba901c4f961 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Wed, 27 Sep 2023 07:39:38 -0700 Subject: [PATCH] Make self-test not require nix.conf set experimental-features --- src/self_test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/self_test.rs b/src/self_test.rs index be04dfa12..77e25243f 100644 --- a/src/self_test.rs +++ b/src/self_test.rs @@ -107,7 +107,7 @@ impl Shell { .as_millis(); command.arg(format!( - r#"nix build --no-link --expr 'derivation {{ name = "self-test-{executable}-{timestamp_millis}"; system = "{SYSTEM}"; builder = "/bin/sh"; args = ["-c" "echo hello > \$out"]; }}'"# + r#"nix build --experimental-features 'nix-command flakes' --no-link --expr 'derivation {{ name = "self-test-{executable}-{timestamp_millis}"; system = "{SYSTEM}"; builder = "/bin/sh"; args = ["-c" "echo hello > \$out"]; }}'"# )); let command_str = format!("{:?}", command.as_std());