nix icon indicating copy to clipboard operation
nix copied to clipboard

Set builtins.nixVersion to a constant?

Open edolstra opened this issue 3 years ago • 2 comments

builtins.nixVersion is an impurity that can cause evaluation results to differ between Nix versions, see https://github.com/NixOS/nixpkgs/pull/156527. So we could set it to a fixed value like 2.6. It's not clear whether there is a legitimate use case for builtins.nixVersion.

edolstra avatar Jan 24 '22 14:01 edolstra

Did you see this use-case? https://github.com/nix-community/poetry2nix/pull/512/commits/5c06704d4584cbd17d66c214447d313a896811a2. (Arguably should not be needed, but here we are.)

bjornfor avatar Jan 24 '22 15:01 bjornfor

Yeah regressions should be fixed.

edolstra avatar Jan 24 '22 15:01 edolstra