From 67a8125a574c74ba4f3f3aabffdd934de5646485 Mon Sep 17 00:00:00 2001 From: Hubble the Wolverine <53921912+the-furry-hubofeverything@users.noreply.github.com> Date: Fri, 20 Oct 2023 05:23:19 -0700 Subject: [PATCH] Add 'flakes' to extra experimental features For resolving "flake:" nixPaths --- src/prefetch.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prefetch.rs b/src/prefetch.rs index 69a60a7..baf7ae6 100644 --- a/src/prefetch.rs +++ b/src/prefetch.rs @@ -93,7 +93,7 @@ pub fn url_prefetch(url: String, unpack: bool) -> Result { pub fn fod_prefetch(expr: String) -> Result { info!( - "$ nix build --extra-experimental-features nix-command --impure --no-link --expr '{expr}'" + "$ nix build --extra-experimental-features 'nix-command flakes' --impure --no-link --expr '{expr}'" ); let Output { @@ -103,7 +103,7 @@ pub fn fod_prefetch(expr: String) -> Result { } = Command::new("nix") .arg("build") .arg("--extra-experimental-features") - .arg("nix-command") + .arg("nix-command flakes") .arg("--impure") .arg("--no-link") .arg("--expr")