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 be6867a commit fde3759
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 fde3759

Please sign in to comment.