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<()> {