diff --git a/pkgs/development/libraries/libpeas/default.nix b/pkgs/development/libraries/libpeas/default.nix index 97b1823272b..712592431ab 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;