2019-11-19 00:46:05 +00:00
|
|
|
{ stdenv
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, fetchurl
|
|
|
|
, evince
|
|
|
|
, gjs
|
|
|
|
, pkgconfig
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, tracker
|
|
|
|
, tracker-miners
|
|
|
|
, itstool
|
|
|
|
, libxslt
|
|
|
|
, webkitgtk
|
|
|
|
, libgdata
|
|
|
|
, gnome-desktop
|
|
|
|
, libzapojit
|
|
|
|
, libgepub
|
|
|
|
, gnome3
|
|
|
|
, gdk-pixbuf
|
|
|
|
, libsoup
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_42
|
|
|
|
, gobject-introspection
|
|
|
|
, inkscape
|
|
|
|
, poppler_utils
|
|
|
|
, desktop-file-utils
|
|
|
|
, wrapGAppsHook
|
|
|
|
, python3
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gnome-documents";
|
2019-11-19 00:46:05 +00:00
|
|
|
version = "3.34.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://gnome/sources/gnome-documents/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-11-19 00:46:05 +00:00
|
|
|
sha256 = "1qph567mapg3s1a26k7b8y57g9bklhj2mh8xm758z9zkms20xafq";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-11-19 00:46:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
libxslt
|
|
|
|
desktop-file-utils
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_42
|
|
|
|
wrapGAppsHook
|
|
|
|
python3
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-11-19 00:46:05 +00:00
|
|
|
# building getting started
|
|
|
|
inkscape
|
|
|
|
poppler_utils
|
2019-03-06 00:29:53 +00:00
|
|
|
];
|
2018-03-14 05:26:39 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2019-11-19 00:46:05 +00:00
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gdk-pixbuf
|
|
|
|
gnome3.adwaita-icon-theme
|
|
|
|
evince
|
|
|
|
libsoup
|
|
|
|
webkitgtk
|
|
|
|
gjs
|
|
|
|
gobject-introspection
|
|
|
|
tracker
|
|
|
|
tracker-miners
|
|
|
|
libgdata
|
|
|
|
gnome-desktop
|
|
|
|
libzapojit
|
|
|
|
libgepub
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dgetting_started=true"
|
2018-03-14 05:26:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
preFixup = ''
|
2018-08-30 18:47:11 +01:00
|
|
|
substituteInPlace $out/bin/gnome-documents --replace gapplication "${glib.bin}/bin/gapplication"
|
2016-09-18 20:35:23 +01:00
|
|
|
'';
|
|
|
|
|
2018-03-14 05:26:39 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
2019-11-19 00:46:05 +00:00
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
2018-03-14 05:26:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2019-11-19 00:46:05 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Documents";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Document manager application designed to work with GNOME 3";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|