Jan Tojnar 2021-09-30 00:38:39 +00:00
parent c85a699169
commit c8993cf928

View File

@ -7,10 +7,10 @@
, gtk3
, wrapGAppsHook
, glib
, amtk
, appstream-glib
, gobject-introspection
, python3
, gi-docgen
, webkitgtk
, gettext
, itstool
@ -20,11 +20,13 @@
stdenv.mkDerivation rec {
pname = "devhelp";
version = "40.1";
version = "41.2";
outputs = [ "out" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/devhelp/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "PorZPoSEtEgjyuR0ov2dziLtbs0lZVWSzq17G2gya7s=";
sha256 = "7KqQsPTaqPsgMPbcaQv1M/+Zp3NDf+Dhis/oLZl/YNI=";
};
nativeBuildInputs = [
@ -37,22 +39,27 @@ stdenv.mkDerivation rec {
appstream-glib
gobject-introspection
python3
gi-docgen
];
buildInputs = [
glib
gtk3
webkitgtk
amtk
gnome.adwaita-icon-theme
gsettings-desktop-schemas
];
mesonFlags = [
"-Dgtk_doc=true"
];
doCheck = true;
postPatch = ''
chmod +x meson_post_install.py # patchShebangs requires executable file
patchShebangs meson_post_install.py
# patchShebangs requires executable file
chmod +x build-aux/meson/meson_post_install.py
patchShebangs build-aux/meson/meson_post_install.py
'';
preFixup = ''
@ -63,6 +70,11 @@ stdenv.mkDerivation rec {
)
'';
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput share/doc/devhelp-3 "$devdoc"
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "devhelp";