2018-03-14 06:26:39 +01:00
|
|
|
{ stdenv, meson, ninja, gettext, fetchurl, evince, gjs
|
2017-10-04 23:50:14 +02:00
|
|
|
, pkgconfig, gtk3, glib, tracker, tracker-miners
|
2018-07-21 02:44:44 +02:00
|
|
|
, itstool, libxslt, webkitgtk, libgdata
|
2018-03-14 06:26:39 +01:00
|
|
|
, gnome-desktop, libzapojit, libgepub
|
2018-07-21 02:44:44 +02:00
|
|
|
, gnome3, gdk_pixbuf, libsoup, docbook_xsl
|
|
|
|
, gobjectIntrospection, inkscape, poppler_utils
|
|
|
|
, desktop-file-utils, wrapGAppsHook }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 21:07:20 +01:00
|
|
|
name = "gnome-documents-${version}";
|
2018-06-13 17:58:18 +02:00
|
|
|
version = "3.28.1";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-documents/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-06-13 17:58:18 +02:00
|
|
|
sha256 = "1i0s246bg9xcjxgbajph744pn65bq5gk6r9kkl3f5iwdq3rjc0pm";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2018-03-14 06:26:39 +01:00
|
|
|
mesonFlags = [ "-Dgetting-started=true" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja pkgconfig gettext itstool libxslt desktop-file-utils docbook_xsl wrapGAppsHook
|
|
|
|
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 21:35:23 +02:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/bin/gnome-documents --replace gapplication "${glib.dev}/bin/gapplication"
|
|
|
|
'';
|
|
|
|
|
2018-03-14 06:26:39 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-documents";
|
|
|
|
attrPath = "gnome3.gnome-documents";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02: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;
|
|
|
|
};
|
|
|
|
}
|