Skip to content
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

Evaluation failure: python3Packages.pyside6 (Linux-only) #356072

Closed
SigmaSquadron opened this issue Nov 15, 2024 · 0 comments · Fixed by #356081
Closed

Evaluation failure: python3Packages.pyside6 (Linux-only) #356072

SigmaSquadron opened this issue Nov 15, 2024 · 0 comments · Fixed by #356081

Comments

@SigmaSquadron
Copy link
Contributor

SigmaSquadron commented Nov 15, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. build python3Packages.pyside6 on x86-64 or Aarch64 Linux at any Nixpkgs commit after 73cdc95.

Build log

Build Log
error:
       … while evaluating the attribute 'drvPath'
         at /nix/store/py1rfigbv569s09j94f1pd3lq00irqd8-source/lib/customisation.nix:365:7:
          364|     in commonAttrs // {
          365|       drvPath = assert condition; drv.drvPath;
             |       ^
          366|       outPath = assert condition; drv.outPath;

       … while evaluating 'strict' to select 'drvPath' on it
         at /builtin/derivation.nix:1:552:
       … while calling the 'derivationStrict' builtin
         at /builtin/derivation.nix:1:208:
       … while evaluating derivation 'pyside6-6.8.0.2'
         whose name attribute is located at /nix/store/py1rfigbv569s09j94f1pd3lq00irqd8-source/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute 'buildInputs' of derivation 'pyside6-6.8.0.2'
         at /nix/store/py1rfigbv569s09j94f1pd3lq00irqd8-source/pkgs/stdenv/generic/make-derivation.nix:383:7:
          382|       depsHostHost                = elemAt (elemAt dependencies 1) 0;
          383|       buildInputs                 = elemAt (elemAt dependencies 1) 1;
             |       ^
          384|       depsTargetTarget            = elemAt (elemAt dependencies 2) 0;

       … in the condition of the assert statement
         at /nix/store/py1rfigbv569s09j94f1pd3lq00irqd8-source/lib/customisation.nix:352:23:
          351|             drvPath = assert condition; drv.${outputName}.drvPath;
          352|             outPath = assert condition; drv.${outputName}.outPath;
             |                       ^
          353|           } //

       … while evaluating the attribute 'handled'
         at /nix/store/py1rfigbv569s09j94f1pd3lq00irqd8-source/pkgs/stdenv/generic/check-meta.nix:507:7:
          506|       # or, alternatively, just output a warning message.
          507|       handled =
             |       ^
          508|         (

       … from call site
         at /nix/store/py1rfigbv569s09j94f1pd3lq00irqd8-source/pkgs/stdenv/generic/check-meta.nix:511:13:
          510|           else if valid == "no" then (
          511|             handleEvalIssue { inherit meta attrs; } { inherit (validity) reason errormsg; }
             |             ^
          512|           )

       … while calling 'handleEvalIssue'
         at /nix/store/py1rfigbv569s09j94f1pd3lq00irqd8-source/pkgs/stdenv/generic/check-meta.nix:269:38:
          268|
          269|   handleEvalIssue = { meta, attrs }: { reason , errormsg ? "" }:
             |                                      ^
          270|     let

       … caused by explicit throw
         at /nix/store/py1rfigbv569s09j94f1pd3lq00irqd8-source/pkgs/stdenv/generic/check-meta.nix:281:8:
          280|         else throw;
          281|     in handler msg;
             |        ^
          282|

       error: Package ‘apple-sdk-15.0’ in /nix/store/py1rfigbv569s09j94f1pd3lq00irqd8-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"
         ]
         package.meta.badPlatforms = [
           {
             cpu = {
               bits = 32;
             };
           }
         ]
       , 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

#354599 (comment)

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.11.7, NixOS, 24.11 (Velociraptor), 5b900e8
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.92.0-dev-pre20241103-b1a0e3c
  • nixpkgs: /nix/store/8b352i30b2x7z0lpf48gqsp13i1670vd-source

Notify maintainers

@gebner

cc @emilazy as #354599 is the likely cause for this. I don't know anything about darwin builds so I'm not sure how to fix it without breaking eval on macOS.


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


Add a 👍 reaction to issues you find important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant