Closed soispha closed 10 months ago
I don't think you can have this set globally and still expects all tools to work properly. This should be only set on a cli level.
We are already passing --impure to nix and use --nix-path instead of '<nixpkgs>'
.
I don't want to also add workarounds for this configuration. This would also break normal nix-shell usage and co. Don't do it or live with the consequences.
How to reproduce
nix.pure-eval = true
to your nixos-config (or addpure-eval = true
in nix.conf).nixpkgs-review
will now fail, as access to the nixpath (<nixpkgs>
) is forbidden.Possible fixes
--impure
to everynix
invocation that tries to access<nixpkgs>
or<nixpkgs>
in the first place.Implementing the second idea would probably necessitate adding a hash backed
builtins.fetchTarball
call, or something like it, to get access to nixpkgs.