-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
NIX_GHC_DOCDIR not set properly #76837
Labels
Comments
10 tasks
I think #76842 fixes this. |
matthewbauer
added a commit
to matthewbauer/nixpkgs
that referenced
this issue
Jan 2, 2020
We were previously just installing the "out" output which broke when we recently changed to generating multiple outputs. Fixes NixOS#76837
And while we fix this, I hope we also set another variable |
I marked this as stale due to inactivity. → More info |
13 tasks
Is there a need for |
HLS has no hoogle support, yet. |
xanderio
pushed a commit
to xanderio/nixpkgs
that referenced
this issue
Feb 13, 2023
* Will make it so that GHC.Paths's docdir NIX_GHC_DOCDIR points to an actual directory. * Documentation of all packages in the environment is available in `$out/share/doc`. This has previously been attempted in NixOS#76842 and reverted in NixOS#77442, since documentation can collide when the libraries wouldn't (thanks to the hash in the lib filename). `symlinkJoin` allows collision, so this solution should be akin to NixOS#77523 (minus `buildEnv`, one step at a time). `installDocumentation = false` restores the old behavior. Collision in the documentation only happen if the dependency closure of the given packages has more than one different derivation for the same library of the very same version. I'm personally inclined not to claim that our infrastructure does anything sensible in this case. Additionally, the documentation is likely largely the same in such cases (unless it is heavily patched). Resolves NixOS#150666. Resolves NixOS#76837. Closes NixOS#150968. Closes NixOS#77523.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When creating a Haskell development environment like this:
with
withHoogle = true
, the doc is generated in${ghcEnv}/share/doc/hoogle/html
, however theNIX_GHC_DOCDIR
is set to${ghcEnv}/share/doc/ghc/html
.The former does not even exist (no such file or directory error on
ls $NIX_GHC_DOCDIR
).See this line:
nixpkgs/pkgs/development/haskell-modules/make-package-set.nix
Line 322 in ff88224
Note that I have seen #20730 and think that it is a different issue.
This issue prevents from using HIE in a nix-shell. See https://discourse.nixos.org/t/cant-make-hie-work-on-vs-code-with-nix/5277/
To Reproduce
Use previous
shell.nix
Expected behavior
nix-shell --run "ls $NIX_GHC_DOCDIR"
should point to${ghcEnv}/share/doc/hoogle/html
Metadata
Maintainer information:
The text was updated successfully, but these errors were encountered: