2018-03-14 05:26:39 +00:00
|
|
|
{ stdenv, meson, ninja, gettext, fetchurl, evince, gjs
|
2017-10-04 22:50:14 +01:00
|
|
|
, pkgconfig, gtk3, glib, tracker, tracker-miners
|
2018-07-21 01:44:44 +01:00
|
|
|
, itstool, libxslt, webkitgtk, libgdata
|
2018-03-14 05:26:39 +00:00
|
|
|
, gnome-desktop, libzapojit, libgepub
|
2018-08-25 14:53:05 +01:00
|
|
|
, gnome3, gdk_pixbuf, libsoup, docbook_xsl, docbook_xml_dtd_42
|
2018-07-21 01:44:44 +01:00
|
|
|
, gobjectIntrospection, inkscape, poppler_utils
|
2018-09-03 21:03:47 +01:00
|
|
|
, desktop-file-utils, wrapGAppsHook, python3 }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 20:07:20 +00:00
|
|
|
name = "gnome-documents-${version}";
|
2018-09-05 01:46:37 +01:00
|
|
|
version = "3.30.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/gnome-documents/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-09-05 01:46:37 +01:00
|
|
|
sha256 = "0zchkjpc9algmxrpj0f9i2lc4h1yp8z0h76vn32xa9jr46x4lsh6";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2018-03-14 05:26:39 +00:00
|
|
|
mesonFlags = [ "-Dgetting-started=true" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2018-09-03 21:03:47 +01:00
|
|
|
meson ninja pkgconfig gettext itstool libxslt desktop-file-utils docbook_xsl docbook_xml_dtd_42 wrapGAppsHook python3
|
2018-03-14 05:26:39 +00:00
|
|
|
inkscape poppler_utils # building getting started
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
gtk3 glib gnome3.gsettings-desktop-schemas
|
|
|
|
gdk_pixbuf gnome3.defaultIconTheme evince
|
|
|
|
libsoup webkitgtk gjs gobjectIntrospection
|
|
|
|
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 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 {
|
|
|
|
packageName = "gnome-documents";
|
|
|
|
attrPath = "gnome3.gnome-documents";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01: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;
|
|
|
|
};
|
|
|
|
}
|