Skip to content

Use nix profile add on Nix 2.30 and newer - #153

Open
mimifuwacc wants to merge 2 commits into
runtimeverification:masterfrom
mimifuwacc:fix/nix-profile-install-deprecation
Open

Use nix profile add on Nix 2.30 and newer#153
mimifuwacc wants to merge 2 commits into
runtimeverification:masterfrom
mimifuwacc:fix/nix-profile-install-deprecation

Conversation

@mimifuwacc

Copy link
Copy Markdown

Summary

Use nix profile add on Nix 2.30 and newer to avoid the deprecation warning emitted by nix profile install.

Motivation

Nix 2.30 renamed nix profile install to nix profile add, while keeping install as a deprecated alias (NixOS/nix#13224).
With recent Nix versions, kup install emits:

warning: 'install' is a deprecated alias for 'add'

Changes

  • Select the profile command based on builtins.nixVersion.
  • Use add for Nix 2.30 and newer.
  • Keep using install for older Nix versions.

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