Skip to content

Commit

Permalink
Make self-test not require nix.conf set experimental-features
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverbear committed Sep 27, 2023
1 parent aed05e9 commit c84a2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/self_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit c84a2cb

Please sign in to comment.