2022-04-03 18:54:34 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2024-07-27 06:49:29 +00:00
|
|
|
, adwaita-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
2021-10-14 00:43:12 +00:00
|
|
|
, gi-docgen
|
2022-10-21 18:38:19 +00:00
|
|
|
, webkitgtk_4_1
|
2020-04-24 23:36:52 +00:00
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, shared-mime-info
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "devhelp";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "43.0";
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "devdoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-09-19 14:19:46 +00:00
|
|
|
url = "mirror://gnome/sources/devhelp/${lib.versions.major version}/devhelp-${version}.tar.xz";
|
|
|
|
hash = "sha256-Y87u/QU5LgIESIHvHs1yQpNVPaVzW378CCstE/6F3QQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
itstool
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
gobject-introspection
|
2021-10-14 00:43:12 +00:00
|
|
|
gi-docgen
|
2022-10-21 18:38:19 +00:00
|
|
|
# post install script
|
|
|
|
glib
|
|
|
|
gtk3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
2022-10-21 18:38:19 +00:00
|
|
|
webkitgtk_4_1
|
2024-07-27 06:49:29 +00:00
|
|
|
adwaita-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Fix pages being blank
|
|
|
|
# https://gitlab.gnome.org/GNOME/devhelp/issues/14
|
|
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
postFixup = ''
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
moveToOutput share/doc/devhelp-3 "$devdoc"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = "devhelp";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "API documentation browser for GNOME";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "devhelp";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://apps.gnome.org/Devhelp/";
|
2024-10-04 16:56:33 +00:00
|
|
|
changelog = "https://gitlab.gnome.org/GNOME/devhelp/-/blob/${version}/NEWS?ref_type=tags";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|