NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.21k stars 14.2k forks source link

Python Package Shiboken6 Requires apple-sdk-15.0 on non-darwin setups #357046

Open taiwithers opened 3 hours ago

taiwithers commented 3 hours ago

Describe the bug

Installing OneDriveGUI 1.1.1a on NixOS results in the following error (edited for brevity)

[...]
while evaluating derivation 'onedrivegui-1.1.1a'
         whose name attribute is located at /nix/store/hfz1qqd0z8amlgn8qwich1dvkmldik36-source/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute 'postInstall' of derivation 'onedrivegui-1.1.1a'
         at /nix/store/hfz1qqd0z8amlgn8qwich1dvkmldik36-source/pkgs/by-name/on/onedrivegui/package.nix:73:3:
[...]

       … while calculating requiredPythonModules for pyside6-6.8.0.2:

       … from call site
         at /nix/store/hfz1qqd0z8amlgn8qwich1dvkmldik36-source/pkgs/development/interpreters/python/python-packages-base.nix:78:12:
[...]
      … while evaluating derivation 'shiboken6-6.8.0.2'
         whose name attribute is located at /nix/store/hfz1qqd0z8amlgn8qwich1dvkmldik36-source/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute 'buildInputs' of derivation 'shiboken6-6.8.0.2'
[...]
error: Package ‘apple-sdk-15.0’ in /nix/store/hfz1qqd0z8amlgn8qwich1dvkmldik36-source/pkgs/by-name/ap/apple-sdk/package.nix:115 is not available on the requested hostPlatform:
         hostPlatform.config = "x86_64-unknown-linux-gnu"
         package.meta.platforms = [
           "x86_64-darwin"
           "i686-darwin"
           "aarch64-darwin"
           "armv7a-darwin"
         ]
[Instructions for workarounds involving unsupported systems]

Steps To Reproduce

Steps to reproduce the behavior:

  1. Run nix flake update to use latest version of nixpkgs-unstable
  2. Run a rebuild (using home-manager in my case) where OneDriveGUI is a requested package

Expected behavior

OneDriveGUI to be "installed" as usual

Additional context

Commit 88895f was the last to affect the Shiboken6 package, and rolling back nixpkgs-unstable to the previous commit fixes the issue.

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.60, NixOS, 24.05 (Uakari), 24.05.20241110.9256f7c`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.91.1
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/tai/.config/nix/nix.conf:/nix/store/7k0bpql90xpdz1irysw9z24q16n3dh8g-plasma-workspace-6.0.5.1/etc/xdg/nix/nix.conf:/nix/store/6d73rgmwjxmzpp7nz6393mpv1rdsgxx5-kglobalacceld-6.0.5/etc/xdg/nix/nix.conf:/nix/store/2y2hvx7lkmwk6ilpcrfh3a32m82mhk0h-baloo-6.2.0/etc/xdg/nix/nix.conf:/home/tai/.config/kdedefaults/nix/nix.conf:/nix/store/7k0bpql90xpdz1irysw9z24q16n3dh8g-plasma-workspace-6.0.5.1/etc/xdg/nix/nix.conf:/nix/store/6d73rgmwjxmzpp7nz6393mpv1rdsgxx5-kglobalacceld-6.0.5/etc/xdg/nix/nix.conf:/nix/store/2y2hvx7lkmwk6ilpcrfh3a32m82mhk0h-baloo-6.2.0/etc/xdg/nix/nix.conf:/nix/store/7k0bpql90xpdz1irysw9z24q16n3dh8g-plasma-workspace-6.0.5.1/etc/xdg/nix/nix.conf:/nix/store/6d73rgmwjxmzpp7nz6393mpv1rdsgxx5-kglobalacceld-6.0.5/etc/xdg/nix/nix.conf:/nix/store/2y2hvx7lkmwk6ilpcrfh3a32m82mhk0h-baloo-6.2.0/etc/xdg/nix/nix.conf:/home/tai/.config/kdedefaults/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/tai/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/tai/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/tai/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/wf2grkfka8jps7300a92h3zz2ya4yji2-lix-2.91.1/share`
 - channels(root): `""`
 - nixpkgs: `/nix/store/9g88fck8ggiah5znz5xn2kxzfr6l7cdq-source`

Notify maintainers

@gebner


Note for maintainers: Please tag this issue in your PR.


Add a :+1: reaction to issues you find important.

ajgon commented 2 hours ago

~Having similar issue with pyside6 package as well. I noticed it was updated 3 days ago, to make it optional, yet it still happens for me (after nix flake update) when trying to use catppuccin-cursors which depends on it (not sure if it's relevant though).~

Sorry, forget about it, works fine for me - I was tracking nixos-unstable instead of master :dizzy_face: