Skip to content

Commit

Permalink
nixci: use valid-derivers with nix-store query command
Browse files Browse the repository at this point in the history
  • Loading branch information
rsrohitsingh682 committed Jul 10, 2024
1 parent 16815b6 commit 8eaba44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix/nix_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl NixStoreCmd {
/// Return the derivation used to build the given build output.
async fn nix_store_query_deriver(&self, out_path: PathBuf) -> Result<DrvOut, NixStoreCmdError> {
let mut cmd = self.command();
cmd.args(["--query", "--deriver", &out_path.to_string_lossy().as_ref()]);
cmd.args(["--query", "--valid-derivers", &out_path.to_string_lossy().as_ref()]);
nix_rs::command::trace_cmd(&cmd);
let out = cmd.output().await?;
if out.status.success() {
Expand Down

0 comments on commit 8eaba44

Please sign in to comment.