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

Haddock generation fails for webkit2gtk3-javascriptcore #6

Open
sevanspowell opened this issue Jun 29, 2022 · 1 comment
Open

Haddock generation fails for webkit2gtk3-javascriptcore #6

sevanspowell opened this issue Jun 29, 2022 · 1 comment

Comments

@sevanspowell
Copy link

Issue

Haddock fails to generate documentation for the webkit2gtk3-javascriptcore library.

This creates a difficult to debug error for projects using this dependency, especially when running haskell.nix projects that pull in this project:

Setup: Graphics/UI/Gtk/WebKit/JavaScriptCore/JSValueRef.chi not found in:
/nix/store/a2xpbp9v6qlkq9zh2bcsbfslb5nvc0rd-ghc-8.10.7/lib/ghc-8.10.7/base-4.14.3.0
dist/build
.

Reproduction

On master (b092a70 at the time of writing) reproduce with:

nix-shell --command "cabal haddock"
@sevanspowell
Copy link
Author

Workaround

A workaround is to disable Haddock generation for the webkit2gtk3-javascriptcore library.

In a haskell.nix project this can be done with:

  pkgs.haskell-nix.project {

    modules = [
      { packages.webkit2gtk3-javascriptcore.doHaddock = false; }
    ];

    ...
  }

I still think this issue is worth resolving because it's difficult for those less-experienced with haskell.nix to debug.

See this IRC chat from 2021-05-22 that was never resolved: https://logs.nix.samueldr.com/haskell.nix/2021-05-22.

sevanspowell added a commit to sevanspowell/help-nix that referenced this issue Jun 30, 2022
- See gtk2hs/webkit-javascriptcore#6
- The Haddock step of webkit2gtk3 fails. We won't miss the Haddock documentation
  for this package so we just workaround it by disabling the Haddock generation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant