mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
nixos/documentation: Link Devhelp files
While Devhelp now supports finding API documentation in `/share/doc` and the new `gi-docgen` toolchain places it there, older projects using gtk-doc (e.g. GLib) still install it to `/share/gtk-doc` and/or `/share/devhelp/books`. For people using the major DEs this is not problem since they have `/share` in `pathsToLink` but we want to be explicit and make it work for everyone.
This commit is contained in:
parent
988cc958c5
commit
6f0523e484
1 changed files with 7 additions and 1 deletions
|
@ -350,7 +350,13 @@ in
|
|||
})
|
||||
|
||||
(mkIf cfg.doc.enable {
|
||||
environment.pathsToLink = [ "/share/doc" ];
|
||||
environment.pathsToLink = [
|
||||
"/share/doc"
|
||||
|
||||
# Legacy paths used by gtk-doc & adjacent tools.
|
||||
"/share/gtk-doc"
|
||||
"/share/devhelp"
|
||||
];
|
||||
environment.extraOutputsToInstall = [ "doc" ] ++ optional cfg.dev.enable "devdoc";
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue