NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.11k stars 14.15k forks source link

Nyxt browser fails to build on aarch64-darwin, `Package ‘notify-osd-0.9.34’ is unsupported on aarch64-darwin` #150460

Open shaunsingh opened 2 years ago

shaunsingh commented 2 years ago

Describe the bug

Nyxt browser fails to build on aarch64-darwin, Package ‘notify-osd-0.9.34’ is unsupported on aarch64-darwin

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix shell nixpkgs#nyxt
  2. see error
error: Package ‘notify-osd-0.9.34’ in /nix/store/0p89jb5wwh9wzs6mr8p527y9r6w1a27n-source/pkgs/applications/misc/notify-osd/default.nix:26 is not supported on ‘aarch64-darwin’, 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

       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.
(use '--show-trace' to show detailed location information)
⏎                                                           

Expected behavior

Package should install as expected

Notify maintainers

Nyxt: @nlewo @payas notify-osd: @bodil

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.2.0, macOS 12.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.4`
 - channels(shauryasingh): `""`
 - channels(root): `"nixpkgs-21.11pre330454.9cae36cff14"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
DieracDelta commented 2 years ago

Any updates on this? @shaunsingh did you run into any gotchas that you worked around?

shaunsingh commented 2 years ago

I think we can just disable it on Darwin platforms. Looks like its a linux things: https://github.com/khurshid-alam/Notify-OSD

I'll mess around with the package and see if I can get it to build sometime soon

veprbl commented 2 years ago

I would try #126082, and you might have to rollback or fix the webkitgtk as it is often broken https://hydra.nixos.org/job/nixpkgs/trunk/webkitgtk.x86_64-darwin/all (upstream doesn't run tests for GTK backend on darwin)

n8henrie commented 1 year ago

Removing notify-osd is insufficient, as webkitgtk fails to build (and I haven't found a prior build succeeding for aarch64-darwin, perhaps I'm not searching correctly).

There are a few PRs and branches that look promising (https://github.com/NixOS/nixpkgs/pull/126101) but not building for me right now.