Skip to content

Commit

Permalink
nixos/documentation: Link Devhelp files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jtojnar committed Feb 25, 2023
1 parent 988cc95 commit 6f0523e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nixos/modules/misc/documentation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
})

Expand Down

0 comments on commit 6f0523e

Please sign in to comment.