Merge pull request #72788 from jtojnar/devhelp-blank

gnome3.devhelp: fix blank pages
This commit is contained in:
Jan Tojnar 2019-11-04 18:59:55 +01:00 committed by GitHub
commit 57d33a2c8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,22 @@
{ stdenv, fetchurl, meson, ninja, pkgconfig, gnome3, gtk3, wrapGAppsHook
, glib, amtk, appstream-glib, gobject-introspection, python3
, webkitgtk, gettext, itstool, gsettings-desktop-schemas }:
{ stdenv
, fetchurl
, meson
, ninja
, pkgconfig
, gnome3
, gtk3
, wrapGAppsHook
, glib
, amtk
, appstream-glib
, gobject-introspection
, python3
, webkitgtk
, gettext
, itstool
, gsettings-desktop-schemas
, shared-mime-info
}:
stdenv.mkDerivation rec {
pname = "devhelp";
@ -11,10 +27,25 @@ stdenv.mkDerivation rec {
sha256 = "0zpmn6fgkgiayvn4diia5df0s6s7dqrdnp3nrvpavsmgn0vhb4pg";
};
nativeBuildInputs = [ meson ninja pkgconfig gettext itstool wrapGAppsHook appstream-glib gobject-introspection python3 ];
nativeBuildInputs = [
meson
ninja
pkgconfig
gettext
itstool
wrapGAppsHook
appstream-glib
gobject-introspection
python3
];
buildInputs = [
glib gtk3 webkitgtk amtk
gnome3.adwaita-icon-theme gsettings-desktop-schemas
glib
gtk3
webkitgtk
amtk
gnome3.adwaita-icon-theme
gsettings-desktop-schemas
];
doCheck = true;
@ -24,6 +55,14 @@ stdenv.mkDerivation rec {
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";
@ -33,8 +72,8 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "API documentation browser for GNOME";
homepage = https://wiki.gnome.org/Apps/Devhelp;
license = licenses.gpl2;
homepage = "https://wiki.gnome.org/Apps/Devhelp";
license = licenses.gpl3Plus;
maintainers = gnome3.maintainers;
platforms = platforms.linux;
};