I want to install 2 conflicting packages using nix profile install
, e.g. nixpkgs#clang_13
and nixpkgs#gcc
.
nix profile install 'nixpkgs#gcc’
error: packages ‘/nix/store/xiq6j4jsyj351p8q3yw9cg1hdqp9m685-gcc-wrapper-10.3.0/bin/as’ and ‘/nix/store/52w8z9p8m5idz4fsh9y1znmms59da8ba-clang-wrapper-13.0.0/bin/as’ have the same priority 5; use ‘nix-env --set-flag priority NUMBER INSTALLED_PKGNAME’ to change the priority of one of the conflicting packages (0 being the highest priority)
What’s the “new CLI / flake” counterpart of nix-env --set-priority
?
$ nix-env --set-flag priority 28 4
error: profile ‘/nix/var/nix/profiles/per-user/krzysiek/profile’ is incompatible with ‘nix-env’; please use ‘nix profile’ instead