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