Skip to content

haskellPackages.streamly: fix darwin override#171438

Merged
sternenseemann merged 1 commit intoNixOS:masterfrom
Artturin:haskellfix1
May 4, 2022
Merged

haskellPackages.streamly: fix darwin override#171438
sternenseemann merged 1 commit intoNixOS:masterfrom
Artturin:haskellfix1

Conversation

@Artturin
Copy link
Member

@Artturin Artturin commented May 3, 2022

fixes

error: querying available packages failed
caused by: nix-env failed with error: nix-env failed with exit code 1:
error: attribute 'streamly_0_8_1_1' missing

       at /nix/store/lw6gp8rrhd7lpi81dk9wr1l09a7za523-source/pkgs/development/haskell-modules/configuration-darwin.nix:259:6:

          258|     ] ++ (drv.libraryFrameworkDepends or []);
          259|   }) super.streamly_0_8_1_1;
             |      ^
          260|

https://github.com/Mic92/nix-index-database/runs/6244309208?check_suite_focus=true

PR #160733 didn't catch this it seems.

Description of changes
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 6.topic: haskell General-purpose, statically typed, purely functional programming language label May 3, 2022
@Artturin
Copy link
Member Author

Artturin commented May 3, 2022

@ofborg build haskellPackages.streamly haskellPackages.streamly_0_8_2

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label May 3, 2022
Copy link
Member

Choose a reason for hiding this comment

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

I think you can just drop this, since it is unused and just bound to cause the same kind of regression.

Unfortunately, with the way haskellPackages is organized (versioned packages having hydraPlatforms = [ ];) and the jobset implemented (evaluating the package list (not the derivation) for all platforms on a single one), Hydra won't pick the removal of the attribute up for us.

Possibly this override should become a cabal2nix PostProcess rule.

Copy link
Member Author

@Artturin Artturin May 4, 2022

Choose a reason for hiding this comment

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

okay, i noticed that there's already a
streamly = addBuildDepend darwin.apple_sdk.frameworks.Cocoa super.streamly;

on line 33

fixes
```
error: querying available packages failed
caused by: nix-env failed with error: nix-env failed with exit code 1:
error: attribute 'streamly_0_8_1_1' missing

       at /nix/store/lw6gp8rrhd7lpi81dk9wr1l09a7za523-source/pkgs/development/haskell-modules/configuration-darwin.nix:259:6:

          258|     ] ++ (drv.libraryFrameworkDepends or []);
          259|   }) super.streamly_0_8_1_1;
             |      ^
          260|
```

PR NixOS#160733 didn't catch this it seems.
@ofborg ofborg 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. labels May 4, 2022
@sternenseemann sternenseemann merged commit 25fedf1 into NixOS:master May 4, 2022
@Artturin Artturin deleted the haskellfix1 branch May 4, 2022 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 6.topic: haskell General-purpose, statically typed, purely functional programming language 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants