Skip to content

Commit

Permalink
cli: search nixpkgs from devenv.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Sep 20, 2024
1 parent 23c0884 commit 7adc87a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions devenv/src/cnix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,12 @@ impl<'a> Nix<'a> {
}

pub async fn search(&self, name: &str) -> Result<process::Output> {
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<PathBuf>) -> Result<()> {
Expand Down

0 comments on commit 7adc87a

Please sign in to comment.