From 20c13a86be3d571d59c1e5c82f3fdb558225d4c0 Mon Sep 17 00:00:00 2001 From: cy Date: Tue, 15 Apr 2025 20:06:46 -0400 Subject: [PATCH] use experimental-features flag when executing nix run --- src/path_info.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/path_info.rs b/src/path_info.rs index 0f05a87..6dcbb53 100644 --- a/src/path_info.rs +++ b/src/path_info.rs @@ -25,8 +25,12 @@ impl PathInfo { pub async fn from_path(path: &str) -> Result { debug!("query nix path-info for {path}"); // use lix cause nix would return a json map instead of an array + // json output is not stable and could break in future + // TODO figure out a better way let nix_cmd = Command::new("nix") .arg("run") + .arg("--experimental-features") + .arg("nix-command flakes") .arg("github:nixos/nixpkgs/nixos-unstable#lix") .arg("--") .arg("path-info")