nixpkgs-review: suffix PATH rather than prefix#370022
nixpkgs-review: suffix PATH rather than prefix#370022Atemu wants to merge 1 commit intoNixOS:masterfrom
Conversation
This prefers using the required binaries from the user's env if present which should be preferred unless there are specific requirements on the binaries given at build time. This allows using e.g. Lix without needing to overlay the nix package.
|
This is a trivial change and I can already tell it works but I can't actually run it because 3.0.0 appears to be generally broken; with or without this change: I can tell it's working though because it doesn't complain about unknown experimental features. |
|
I think I would prefer if user would just override the package because it's sneaky if the nix version changes without the user knowing and there might be subtle differences between versions. The re-build of this package is very fast. |
|
For future reference: |
Yes of course but I think that's an argument for doing this. Ideally, any nix-dependent process should use the same Nix as the nix-daemon which is the one in the environment. |
Some people might still have nix 2.3 installed for whatever reason and that will not be compatible with nixpkgs-review. |
|
Related: #420974 |
|
I've merged #418318 which takes another approach. |
This prefers using the required binaries from the user's env if present which should be preferred unless there are specific requirements on the binaries given at build time.
This allows using e.g. Lix without needing to overlay the nix package.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.