Skip to content

libreoffice-bin: installs as libreoffice instead of libreoffice-bin #413208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
xVemu opened this issue Jun 2, 2025 · 1 comment
Open
3 tasks done

libreoffice-bin: installs as libreoffice instead of libreoffice-bin #413208

xVemu opened this issue Jun 2, 2025 · 1 comment
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin

Comments

@xVemu
Copy link

xVemu commented Jun 2, 2025

Nixpkgs version

  • Unstable (25.11)

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 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.

Steps to reproduce

  1. Install libreoffice-bin: nix-env -iA nixpkgs.libreoffice-bin
  2. List installed packages: nix-env -q --installed
  3. You can see only libreoffice, libreoffice-bin is missing

Expected behaviour

nix-env outputs libreoffice-bin, so I can upgrade easily

Screenshots

Image

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 information
evaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more information
evaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more information
evaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more information
evaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more information
evaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more information
evaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more information
evaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more information
evaluation warning: CUDA versions older than 12.0 will be removed in Nixpkgs 25.05; see the 24.11 release notes for more information
error:
       … 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.

Additional context

No response

System metadata

  • system: "aarch64-darwin"
  • host os: Darwin 24.5.0, macOS 15.5
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.28.3
  • channels(root): "nixpkgs"
  • 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.

@xVemu xVemu added 0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin labels Jun 2, 2025
@eclairevoyant
Copy link
Contributor

eclairevoyant commented Jun 2, 2025

Yes, nix-env sucks and is broken by design. I'd suggest you stop using it.

That's not a bug in the libreoffice-bin package, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

2 participants