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

haskellPackages.terminfo: not a core pkg if cross compiling #182873

Merged
merged 1 commit into from Jul 26, 2022

Conversation

sternenseemann
Copy link
Member

GHC's cross build flavours disable the terminfo package, so it will
never be included if we are cross-compiling – setting it to null thus
breaks all builds depending on the package.

To fix this problem, we use the versioned attribute generated by
hackage2nix, just like we do for xhtml.

Closes #182785.

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.11 Release Notes (or backporting 22.05 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.

GHC's cross build flavours disable the terminfo package, so it will
never be included if we are cross-compiling – setting it to null thus
breaks all builds depending on the package.

To fix this problem, we use the versioned attribute generated by
hackage2nix, just like we do for xhtml.

Closes NixOS#182785.
Copy link
Member

@cdepillabout cdepillabout left a comment

Choose a reason for hiding this comment

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

LGTM!

cc @pmiddend as well

@pmiddend
Copy link
Contributor

Tried it and my build now works without the pesky override { vty { terminfo = ... } } 👍

@maralorn maralorn merged commit dd6432a into NixOS:haskell-updates Jul 26, 2022
@sternenseemann sternenseemann deleted the terminfo-cross branch July 26, 2022 10:30
j6carey pushed a commit to awakesecurity/nixpkgs that referenced this pull request Sep 27, 2023
j6carey pushed a commit to awakesecurity/nixpkgs that referenced this pull request Nov 10, 2023
jsoo1 pushed a commit to awakesecurity/nixpkgs that referenced this pull request Nov 13, 2023
j6carey pushed a commit to awakesecurity/nixpkgs that referenced this pull request Dec 7, 2023
j6carey pushed a commit to awakesecurity/nixpkgs that referenced this pull request Dec 7, 2023
j6carey pushed a commit to awakesecurity/nixpkgs that referenced this pull request Dec 17, 2023
jsoo1 pushed a commit to awakesecurity/nixpkgs that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants