Skip to content

swift.swiftArch, swift.swiftOs: fix the eval - #565323

Merged
reckenrode merged 1 commit into
NixOS:stagingfrom
trofi:swift-fix-eval
Sep 20, 2026
Merged

reckenrode merged 1 commit into
NixOS:stagingfrom
trofi:swift-fix-eval

Conversation

@trofi

@trofi trofi commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Without the chnage the eval fails as:

$ nix eval 'nixpkgs/staging#swift.swiftArch'
error:
   … in the left operand of the update (//) operator
     at «github:NixOS/nixpkgs/9cfde996e4f874e9b58a0e9efb5193d565b6daf3»/lib/derivations.nix:265:8:
      264|     drv
      265|     // mapAttrs (_: lib.warn msg) drvToWrap
         |        ^
      266|     // (

   … while calling the 'mapAttrs' builtin
     at «github:NixOS/nixpkgs/9cfde996e4f874e9b58a0e9efb5193d565b6daf3»/lib/derivations.nix:265:8:
      264|     drv
      265|     // mapAttrs (_: lib.warn msg) drvToWrap
         |        ^
      266|     // (

   (stack trace truncated; use '--show-trace' to show the full, detailed trace)

   error: expected a set but found a string: "x86_64"

Things done

Without the chnage the eval fails as:

    $ nix eval 'nixpkgs/staging#swift.swiftArch'
    error:
       … in the left operand of the update (//) operator
         at «github:NixOS/nixpkgs/9cfde996e4f874e9b58a0e9efb5193d565b6daf3»/lib/derivations.nix:265:8:
          264|     drv
          265|     // mapAttrs (_: lib.warn msg) drvToWrap
             |        ^
          266|     // (

       … while calling the 'mapAttrs' builtin
         at «github:NixOS/nixpkgs/9cfde996e4f874e9b58a0e9efb5193d565b6daf3»/lib/derivations.nix:265:8:
          264|     drv
          265|     // mapAttrs (_: lib.warn msg) drvToWrap
             |        ^
          266|     // (

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: expected a set but found a string: "x86_64"
@trofi trofi mentioned this pull request Sep 20, 2026
7 of 13 tasks
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Sep 20, 2026

@reckenrode reckenrode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m surprised this got past my eval checks. Thanks for the fix. LGTM.

@reckenrode
reckenrode added this pull request to the merge queue Sep 20, 2026
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Sep 20, 2026
Merged via the queue into NixOS:staging with commit 29698db Sep 20, 2026
34 checks passed
@trofi
trofi deleted the swift-fix-eval branch September 21, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants