From fde375980979b18def4e5c6d903cc09b324ce127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Thu, 19 Sep 2024 20:50:03 +0100 Subject: [PATCH] cli: search nixpkgs from devenv.yaml --- devenv/src/cnix.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/devenv/src/cnix.rs b/devenv/src/cnix.rs index dd8be8987..96e2132c7 100644 --- a/devenv/src/cnix.rs +++ b/devenv/src/cnix.rs @@ -210,8 +210,12 @@ impl<'a> Nix<'a> { } pub async fn search(&self, name: &str) -> Result { - self.run_nix_with_substituters("nix", &["search", "--json", "nixpkgs", name], &self.options) - .await + self.run_nix_with_substituters( + "nix", + &["search", "--inputs-from", ".", "--json", "nixpkgs", name], + &self.options, + ) + .await } pub fn gc(&self, paths: Vec) -> Result<()> {