Skip to content

haskellPackages.cabalSdist: Work around cabal#8413 - #187726

Merged
sternenseemann merged 1 commit into
NixOS:haskell-updatesfrom
hercules-ci:haskell-work-around-cabal-issue-8352
Aug 22, 2022
Merged

sternenseemann merged 1 commit into
NixOS:haskell-updatesfrom
hercules-ci:haskell-work-around-cabal-issue-8352

Conversation

@roberth

@roberth roberth commented Aug 21, 2022 •

Copy link
Copy Markdown
Member
Description of changes

Work around haskell/cabal#8413

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.

@github-actions github-actions Bot added the 6.topic: haskell General-purpose, statically typed, purely functional programming language label Aug 21, 2022
@roberth

roberth commented Aug 21, 2022 •

Copy link
Copy Markdown
Member Author

@ofborg build tests.haskell

@ofborg ofborg Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Aug 21, 2022
@roberth
roberth force-pushed the haskell-work-around-cabal-issue-8352 branch from 809cb6b to ad6f339 Compare August 21, 2022 12:35
@roberth
roberth requested a review from sternenseemann August 21, 2022 12:36
@sternenseemann
sternenseemann merged commit f89dd3d into NixOS:haskell-updates Aug 22, 2022
@sternenseemann

Copy link
Copy Markdown
Member

Thanks!

@ju1m

ju1m commented Nov 21, 2025

Copy link
Copy Markdown
Contributor

@roberth, I've just stumbled upon the TODO introduced by this PR while browsing the code, so just to let you know that the referenced issue is now closed, and thus maybe self.ghc can be removed now. Cheers.

github-merge-queue Bot pushed a commit that referenced this pull request Nov 22, 2025
The workaround added in #187726
for haskell/cabal#8352 is no longer needed.

cabal-install 3.8.1.0 introduced a regression where `cabal sdist`
required GHC to be in PATH. This was fixed in cabal-install 3.10.1.0
(haskell/cabal#8358), and nixpkgs now uses
cabal-install 3.16.0.0.

tests.haskell.cabalSdist passes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: haskell General-purpose, statically typed, purely functional programming language 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants