2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, gnome3
|
|
|
|
, gtk3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, glib
|
|
|
|
, amtk
|
|
|
|
, appstream-glib
|
|
|
|
, gobject-introspection
|
|
|
|
, python3
|
|
|
|
, webkitgtk
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, shared-mime-info
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "devhelp";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = "3.38.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/devhelp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-11-30 08:33:03 +00:00
|
|
|
sha256 = "13sa25mmlc49kn520hdfbskma65y7smvwmyhfggj0n9s3fazba2d";
|
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
|
|
|
|
wrapGAppsHook
|
|
|
|
appstream-glib
|
|
|
|
gobject-introspection
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
webkitgtk
|
|
|
|
amtk
|
|
|
|
gnome3.adwaita-icon-theme
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Fix pages being blank
|
|
|
|
# https://gitlab.gnome.org/GNOME/devhelp/issues/14
|
|
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "devhelp";
|
|
|
|
attrPath = "gnome3.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";
|
|
|
|
homepage = "https://wiki.gnome.org/Apps/Devhelp";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|