I don’t run with the sandbox enabled normally (on darwin), but I’d prefer to enable it when building packages I’m submitting PRs for. Unfortunately I usually forget, which means I now have a cached output and therefore it won’t rebuild.
I think I can use
nix-build --check to rebuild, except A) this requires the outputs to exist already so it will fail if I didn’t build it previously, and B) I’m not sure if I can use this when I need to rebuild sub-derivations as well (e.g. when building
ffsend I want to rebuild
Is there any way of saying “do a build, but ignore any existing outputs for the listed attribute paths”? I obviously can’t say “ignore any existing output” because I don’t want to rebuild my build inputs or the whole stdenv. I also don’t want to outright delete the paths from my store first because that’s both awkward and it can’t be done if I’m using any of these paths in my environment.