`nix profile install --override-inputs` fails with "Git changes are not committed"
SandaruKasa opened this issue · 1 comments
SandaruKasa commented
I usually install Nix stuff using
$ nix -Lv profile install --override-input nixpkgs nixpkgs <...>
to avoid having to pull a new version of nixpkgs (and its packages) each time and then ending up depending on 10 different version of glibc.
However, trying to install nil
this way gives me an error.
The culprit is this line:
Line 19 in 0031eb4
It makes it a hard error to build the package when the git tree is dirty (and --override-inputs
makes it dirty).
This may be relaxed by using
rev = self.rev or self.dirtyRev;
but I'm not sure if this is a desired behavior for this project, thus I am submitting an issue and not a PR.
oxalica commented
dirtyRev
TIL. Thanks.