From c5a8c3c9465759041ee63ea581d3eae6800336ff Mon Sep 17 00:00:00 2001 From: figsoda Date: Thu, 20 Jul 2023 19:37:16 -0400 Subject: [PATCH] --experimental-features -> --extra-experimental-features --- src/prefetch.rs | 10 ++++++---- tests/integration.rs | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/prefetch.rs b/src/prefetch.rs index ac7605f..69a60a7 100644 --- a/src/prefetch.rs +++ b/src/prefetch.rs @@ -39,12 +39,12 @@ pub fn flake_prefetch(flake_ref: String) -> Result { hash: String, } - info!("$ nix flake prefetch --experimental-features 'nix-command flakes' --json {flake_ref}"); + info!("$ nix flake prefetch --extra-experimental-features 'nix-command flakes' --json {flake_ref}"); Ok(serde_json::from_slice::( &Command::new("nix") .arg("flake") .arg("prefetch") - .arg("--experimental-features") + .arg("--extra-experimental-features") .arg("nix-command flakes") .arg("--json") .arg(flake_ref) @@ -92,7 +92,9 @@ pub fn url_prefetch(url: String, unpack: bool) -> Result { } pub fn fod_prefetch(expr: String) -> Result { - info!("$ nix build --experimental-features nix-command --impure --no-link --expr '{expr}'"); + info!( + "$ nix build --extra-experimental-features nix-command --impure --no-link --expr '{expr}'" + ); let Output { stdout, @@ -100,7 +102,7 @@ pub fn fod_prefetch(expr: String) -> Result { status, } = Command::new("nix") .arg("build") - .arg("--experimental-features") + .arg("--extra-experimental-features") .arg("nix-command") .arg("--impure") .arg("--no-link") diff --git a/tests/integration.rs b/tests/integration.rs index 596fd9f..a1edf1e 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -44,7 +44,7 @@ fn verify_outputs() { Command::new("nix") .arg("build") - .arg("--experimental-features") + .arg("--extra-experimental-features") .arg("nix-command") .arg("--impure") .arg("--expr")