88abffb7d2
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
80 lines
1.5 KiB
Nix
80 lines
1.5 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, gnome
|
|
, gtk3
|
|
, wrapGAppsHook
|
|
, glib
|
|
, amtk
|
|
, appstream-glib
|
|
, gobject-introspection
|
|
, python3
|
|
, webkitgtk
|
|
, gettext
|
|
, itstool
|
|
, gsettings-desktop-schemas
|
|
, shared-mime-info
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "devhelp";
|
|
version = "40.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/devhelp/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
sha256 = "PorZPoSEtEgjyuR0ov2dziLtbs0lZVWSzq17G2gya7s=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gettext
|
|
itstool
|
|
wrapGAppsHook
|
|
appstream-glib
|
|
gobject-introspection
|
|
python3
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
webkitgtk
|
|
amtk
|
|
gnome.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 = gnome.updateScript {
|
|
packageName = "devhelp";
|
|
attrPath = "gnome.devhelp";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "API documentation browser for GNOME";
|
|
homepage = "https://wiki.gnome.org/Apps/Devhelp";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|