From 6f0523e4847da9a801d96d698bf331f48863e444 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 Feb 2023 01:10:09 +0100 Subject: [PATCH] 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. --- nixos/modules/misc/documentation.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/modules/misc/documentation.nix b/nixos/modules/misc/documentation.nix index ecc40ad6adef7..916fc366ecea9 100644 --- a/nixos/modules/misc/documentation.nix +++ b/nixos/modules/misc/documentation.nix @@ -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"; })