about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2022-03-20 06:51:49 +0100
committerJan Tojnar <jtojnar@gmail.com>2022-03-25 15:02:47 +0100
commitc82f942efcd486f6f838dec7a467c3ef55ce4392 (patch)
tree1cadacc47e727e25e03a3cdbe17ea042f1a76969
parent705068d5e32b9301b40ef9fab38c5b3178ad9cfb (diff)
libpeas: build developer docs
-rw-r--r--pkgs/development/libraries/libpeas/default.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libpeas/default.nix b/pkgs/development/libraries/libpeas/default.nix
index 97b1823272b1b..712592431abe0 100644
--- a/pkgs/development/libraries/libpeas/default.nix
+++ b/pkgs/development/libraries/libpeas/default.nix
@@ -5,6 +5,7 @@
 , ninja
 , pkg-config
 , gettext
+, gi-docgen
 , gnome
 , glib
 , gtk3
@@ -17,7 +18,7 @@ stdenv.mkDerivation rec {
   pname = "libpeas";
   version = "1.32.0";
 
-  outputs = [ "out" "dev" ];
+  outputs = [ "out" "dev" "devdoc" ];
 
   src = fetchurl {
     url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
@@ -29,6 +30,7 @@ stdenv.mkDerivation rec {
     meson
     ninja
     gettext
+    gi-docgen
     gobject-introspection
   ];
 
@@ -45,6 +47,15 @@ stdenv.mkDerivation rec {
     gobject-introspection
   ];
 
+  mesonFlags = [
+    "-Dgtk_doc=true"
+  ];
+
+  postFixup = ''
+    # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
+    moveToOutput "share/doc" "$devdoc"
+  '';
+
   passthru = {
     updateScript = gnome.updateScript {
       packageName = pname;