nix
nix copied to clipboard
Set builtins.nixVersion to a constant?
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.
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.)
Yeah regressions should be fixed.