Skip to content

Comments

irods: Don't use builtins.nixVersion#156527

Merged
edolstra merged 1 commit intoNixOS:masterfrom
edolstra:irods-nix-version
Jan 24, 2022
Merged

irods: Don't use builtins.nixVersion#156527
edolstra merged 1 commit intoNixOS:masterfrom
edolstra:irods-nix-version

Conversation

@edolstra
Copy link
Member

The value of builtins.nixVersion should never be used except to bail out if it's too old. It causes the evaluation result to depend on the version of Nix, so e.g. the binary cache doesn't work.

Found when trying to use Nixpkgs as a regression test suite for Nix. This is the only package whose nix-env output differs between Nix versions.

The value of builtins.nixVersion should never be used except to bail
out if it's too old. It causes the evaluation result to depend on the
version of Nix, so e.g. the binary cache doesn't work.
@github-actions
Copy link
Contributor

Successfully created backport PR #156552 for release-21.11.

edolstra added a commit to edolstra/nix that referenced this pull request Jan 24, 2022
This prevents issues like
NixOS/nixpkgs#156527. Eventually we should do
this in impure mode as well. Issue NixOS#5970.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant