nixpkgs/nixos
sternenseemann 727491cd95 ghc.withPackages: install documentation to -with-packages output
* 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 #76842 and reverted in #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 #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 #150666.
Resolves #76837.
Closes #150968.
Closes #77523.
2023-01-15 17:35:42 +01:00
..
doc ghc.withPackages: install documentation to -with-packages output 2023-01-15 17:35:42 +01:00
lib Merge pull request #208762 from ncfavier/link-manpages-options-doc 2023-01-09 11:57:01 +01:00
maintainers nixos/lxc-container: undo some of the minimal profile stuff 2022-12-09 23:18:37 +03:00
modules Merge pull request #161237 from miallo/nixos-version-configuration-revision 2023-01-12 12:31:54 +01:00
tests nixos/tests/gitlab: Fix a regression introduced in 15.7.0 2023-01-10 22:53:33 -05:00
COPYING
default.nix
README
release-combined.nix Merge pull request #197254 from Atemu/fstab-escape-options 2022-11-19 18:08:40 +01:00
release-small.nix nixos/release: add acme to tested set 2022-10-25 07:22:27 +10:00
release.nix nixos: Add sd_image_minimal_new_kernel_no_zfs 2022-12-22 23:07:19 -05:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.