Skip to content

Commit

Permalink
Fix usage with the impure option
Browse files Browse the repository at this point in the history
Skips passing the `--impure` nix-store, which does not support the
option.
  • Loading branch information
sandydoo committed Apr 3, 2024
1 parent 99f93f7 commit 1a2ba8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion devenv/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ impl App {
};

if self.cli.impure || self.config.impure {
flags.push("--impure");
if !command.starts_with("nix-store") {
flags.push("--impure");
}
// set a dummy value to overcome https://github.com/NixOS/nix/issues/10247
cmd.env("NIX_PATH", ":");
}
Expand Down

0 comments on commit 1a2ba8d

Please sign in to comment.