You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to upgrade my packages, so I ran nix-env --upgrade --dry-run. Unfortunately, this command throws an error that libreoffice package is not supported on my system. That's true, because the normal version without bin suffix is in fact unsupported on macOS, but here's a catch. I've installed libreoffice-bin not libreoffice. Somehow, libreoffice-bin package figures as libreoffice in nix-env after installation. It prevents me from upgrading all my packages at once.
You can see only libreoffice, libreoffice-bin is missing
Expected behaviour
nix-env outputs libreoffice-bin, so I can upgrade easily
Screenshots
Relevant log output
nix-env --upgrade --dry-run(dry run; not doing anything)evaluation warning: The package set `androidndkPkgs_23b` has been renamed to `androidndkPkgs_23`.evaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more informationevaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more informationevaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more informationevaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more informationevaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more informationevaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more informationevaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more informationevaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more informationevaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more informationerror: … while trying to find an upgrade for 'libreoffice-25.2.1' … in the condition of the assert statement at /nix/store/3fvp9v934wa50z33x0v3pvq2fbxdqz2s-nixpkgs/nixpkgs/lib/customisation.nix:422:9: 421| outPath = 422| assert condition; | ^ 423| drv.outPath; … while evaluating the attribute 'handled' at /nix/store/3fvp9v934wa50z33x0v3pvq2fbxdqz2s-nixpkgs/nixpkgs/pkgs/stdenv/generic/check-meta.nix:624:9: 623| # or, alternatively, just output a warning message. 624| handled = ( | ^ 625| if valid == "yes" then (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: Package ‘libreoffice-25.2.1.2’ in /nix/store/3fvp9v934wa50z33x0v3pvq2fbxdqz2s-nixpkgs/nixpkgs/pkgs/applications/office/libreoffice/default.nix:759 is not available on the requested hostPlatform: hostPlatform.config = "arm64-apple-darwin" package.meta.platforms = [ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "i686-linux" "loongarch64-linux" "m68k-linux" "microblaze-linux" "microblazeel-linux" "mips-linux" "mips64-linux" "mips64el-linux" "mipsel-linux" "powerpc64-linux" "powerpc64le-linux" "riscv32-linux" "riscv64-linux" "s390-linux" "s390x-linux" "x86_64-linux" ] package.meta.badPlatforms = [ ] , refusing to evaluate. a) To temporarily allow packages that are unsupported for this system, you can use an environment variable for a single invocation of the nix tools. $ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake, then pass `--impure` in order to allow use of environment variables. b) For `nixos-rebuild` you can set { nixpkgs.config.allowUnsupportedSystem = true; } in configuration.nix to override this. c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add { allowUnsupportedSystem = true; } to ~/.config/nixpkgs/config.nix.
Nixpkgs version
Describe the bug
I wanted to upgrade my packages, so I ran
nix-env --upgrade --dry-run
. Unfortunately, this command throws an error that libreoffice package is not supported on my system. That's true, because the normal version withoutbin
suffix is in fact unsupported on macOS, but here's a catch. I've installedlibreoffice-bin
notlibreoffice
. Somehow, libreoffice-bin package figures as libreoffice in nix-env after installation. It prevents me from upgrading all my packages at once.Steps to reproduce
nix-env -iA nixpkgs.libreoffice-bin
nix-env -q --installed
libreoffice
,libreoffice-bin
is missingExpected behaviour
nix-env outputs libreoffice-bin, so I can upgrade easily
Screenshots
Relevant log output
Additional context
No response
System metadata
"aarch64-darwin"
Darwin 24.5.0, macOS 15.5
yes
no
nix-env (Nix) 2.28.3
"nixpkgs"
/nix/store/3fvp9v934wa50z33x0v3pvq2fbxdqz2s-nixpkgs/nixpkgs
Are you using nix-darwin?
No, I am not using nix-darwin.
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE
.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: