Skip to content

Commit

Permalink
fix: use --option for setting experimental features
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanccn committed Nov 28, 2024
1 parent 7bd138d commit 8326629
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/cli/uninstall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ fn build_uninstall_system() -> Result<PathBuf> {
"--impure",
"--json",
"--no-link",
"--extra-experimental-features",
"nix-command",
"--extra-experimental-features",
"flakes",
"--option",
"extra-experimental-features",
"nix-command flakes",
"--expr",
])
.arg(&expr_template)
Expand Down
7 changes: 3 additions & 4 deletions src/stages/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ pub fn build(
"build",
"--json",
"--no-link",
"--extra-experimental-features",
"nix-command",
"--extra-experimental-features",
"flakes",
"--option",
"extra-experimental-features",
"nix-command flakes",
])
.args(extra_build_flags)
.args(["--", &format!("{flake_url}#{flake_attr}.system")])
Expand Down

0 comments on commit 8326629

Please sign in to comment.