mirror of
https://github.com/nix-community/nurl.git
synced 2024-10-03 21:28:31 +03:00
--experimental-features -> --extra-experimental-features
This commit is contained in:
parent
354ebf3b7f
commit
c5a8c3c946
@ -39,12 +39,12 @@ pub fn flake_prefetch(flake_ref: String) -> Result<String> {
|
||||
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::<PrefetchOutput>(
|
||||
&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<String> {
|
||||
}
|
||||
|
||||
pub fn fod_prefetch(expr: String) -> Result<String> {
|
||||
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<String> {
|
||||
status,
|
||||
} = Command::new("nix")
|
||||
.arg("build")
|
||||
.arg("--experimental-features")
|
||||
.arg("--extra-experimental-features")
|
||||
.arg("nix-command")
|
||||
.arg("--impure")
|
||||
.arg("--no-link")
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user