2017-10-04 23:50:14 +02:00
|
|
|
{ stdenv, gettext, fetchurl, evince, gjs
|
|
|
|
, pkgconfig, gtk3, glib, tracker, tracker-miners
|
|
|
|
, itstool, libxslt, webkitgtk
|
2016-09-18 21:35:23 +02:00
|
|
|
, gnome3, librsvg, gdk_pixbuf, libsoup, docbook_xsl
|
2018-02-25 03:23:58 +01:00
|
|
|
, gobjectIntrospection, json-glib, inkscape, poppler_utils
|
|
|
|
, gmp, desktop-file-utils, wrapGAppsHook }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-getting-started" ];
|
|
|
|
|
2018-02-25 03:23:58 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig gettext itstool libxslt desktop-file-utils docbook_xsl wrapGAppsHook ];
|
2017-10-04 23:50:14 +02:00
|
|
|
buildInputs = [ gtk3 glib inkscape poppler_utils
|
2018-02-25 03:23:58 +01:00
|
|
|
gnome3.gsettings-desktop-schemas gmp
|
2016-09-18 21:35:23 +02:00
|
|
|
gdk_pixbuf gnome3.defaultIconTheme librsvg evince
|
|
|
|
libsoup webkitgtk gjs gobjectIntrospection gnome3.rest
|
2018-02-25 03:23:58 +01:00
|
|
|
tracker tracker-miners gnome3.libgdata gnome3.gnome-online-accounts
|
|
|
|
gnome3.gnome-desktop gnome3.libzapojit json-glib gnome3.libgepub ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/bin/gnome-documents --replace gapplication "${glib.dev}/bin/gapplication"
|
|
|
|
|
|
|
|
gappsWrapperArgs+=(--run 'if [ -z "$XDG_CACHE_DIR" ]; then XDG_CACHE_DIR=$HOME/.cache; fi; if [ -w "$XDG_CACHE_DIR/.." ]; then mkdir -p "$XDG_CACHE_DIR/gnome-documents"; fi')
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|