nixpkgs/pkgs/desktops/gnome-3/3.16/apps/gnome-documents/default.nix

45 lines
1.7 KiB
Nix
Raw Normal View History

2015-04-10 17:02:57 +02:00
{ stdenv, intltool, fetchurl, evince, gjs
, pkgconfig, gtk3, glib, hicolor_icon_theme
, makeWrapper, itstool, libxslt, webkitgtk
, gnome3, librsvg, gdk_pixbuf, libsoup, docbook_xsl
, gobjectIntrospection, json_glib, inkscape, poppler_utils
2015-07-29 13:16:55 +02:00
, gmp, desktop_file_utils, wrapGAppsHook }:
2015-04-10 17:02:57 +02:00
stdenv.mkDerivation rec {
name = "gnome-documents-${gnome3.version}.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-documents/${gnome3.version}/${name}.tar.xz";
sha256 = "154ssnyq4lwq2rsy3l5kqk8x1qjvn2j5gqm23i0aiw7qsbx5phrs";
};
doCheck = true;
configureFlags = [ "--enable-getting-started" ];
2015-04-10 17:02:57 +02:00
buildInputs = [ pkgconfig gtk3 glib intltool itstool libxslt
docbook_xsl desktop_file_utils inkscape poppler_utils
2015-04-10 17:02:57 +02:00
gnome3.gsettings_desktop_schemas makeWrapper gmp
gdk_pixbuf gnome3.adwaita-icon-theme librsvg evince
libsoup webkitgtk gjs gobjectIntrospection gnome3.rest
gnome3.tracker gnome3.libgdata gnome3.gnome_online_accounts
gnome3.gnome_desktop gnome3.libzapojit json_glib
2015-07-29 13:16:55 +02:00
wrapGAppsHook ];
2015-04-10 17:02:57 +02:00
enableParallelBuilding = true;
2015-07-29 13:16:55 +02:00
preFixup = ''
2015-04-10 17:02:57 +02:00
substituteInPlace $out/bin/gnome-documents --replace gapplication "${glib}/bin/gapplication"
2015-07-29 13:16:55 +02:00
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')
2015-04-10 17:02:57 +02:00
'';
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/Documents;
description = "Document manager application designed to work with GNOME 3";
2015-07-29 17:38:42 +02:00
maintainers = gnome3.maintainers;
2015-04-10 17:02:57 +02:00
license = licenses.gpl2;
platforms = platforms.linux;
};
}