Skip to content

haskellPackages.shellFor: Work around hoogle generation failure#127028

Merged
cdepillabout merged 1 commit intoNixOS:haskell-updatesfrom
expipiplus1:joe-hoogle-fix
Jun 16, 2021
Merged

haskellPackages.shellFor: Work around hoogle generation failure#127028
cdepillabout merged 1 commit intoNixOS:haskell-updatesfrom
expipiplus1:joe-hoogle-fix

Conversation

@expipiplus1
Copy link
Copy Markdown
Contributor

Workaround for #82245

Although this doesn't tackle the root cause of a null package sneaking
in (via executableHaskellDepends), it does effectively treat the symptom
by just ignoring any null packages.

Seeing as that issue has been open for more than a year I think this
band-aid is necessary.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 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
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 6.topic: haskell General-purpose, statically typed, purely functional programming language label Jun 16, 2021
@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 Jun 16, 2021
Workaround for NixOS#82245

Although this doesn't tackle the root cause of a null package sneaking
in (via executableHaskellDepends), it does effectively treat the symptom
by just ignoring any null packages.

Seeing as that issue has been open for more than a year I think this
band-aid is necessary.
@cdepillabout
Copy link
Copy Markdown
Member

LGTM, thanks!

I think @expipiplus1 has tested this in NixOS/cabal2nix#505 (comment), so I'll go ahead and merge in.

@cdepillabout cdepillabout merged commit ae6480a into NixOS:haskell-updates Jun 16, 2021
@expipiplus1
Copy link
Copy Markdown
Contributor Author

expipiplus1 commented Jun 16, 2021 via email

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 5, 2022

Backport failed for release-21.11, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally.

git fetch origin release-21.11
git worktree add -d .worktree/backport-127028-to-release-21.11 origin/release-21.11
cd .worktree/backport-127028-to-release-21.11
git checkout -b backport-127028-to-release-21.11
ancref=$(git merge-base 4327400c1b4caa98c6b9fb95d6f82d773885a87e d8daa7af738311a68bacf5af1e4ff9e246a13e47)
git cherry-pick -x $ancref..d8daa7af738311a68bacf5af1e4ff9e246a13e47

@expipiplus1
Copy link
Copy Markdown
Contributor Author

Backport failed for release-21.11, because it was unable to cherry-pick the commit(s).

It's good, seems to be there already?

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: 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.

3 participants