4baf2775c6
https://ftp.gnome.org/pub/GNOME/sources/gnome-documents/3.34/gnome-documents-3.34.0.news Also clean up.
110 lines
1.9 KiB
Nix
110 lines
1.9 KiB
Nix
{ stdenv
|
|
, meson
|
|
, ninja
|
|
, gettext
|
|
, fetchurl
|
|
, evince
|
|
, gjs
|
|
, pkgconfig
|
|
, gtk3
|
|
, glib
|
|
, tracker
|
|
, tracker-miners
|
|
, itstool
|
|
, libxslt
|
|
, webkitgtk
|
|
, libgdata
|
|
, gnome-desktop
|
|
, libzapojit
|
|
, libgepub
|
|
, gnome3
|
|
, gdk-pixbuf
|
|
, libsoup
|
|
, docbook_xsl
|
|
, docbook_xml_dtd_42
|
|
, gobject-introspection
|
|
, inkscape
|
|
, poppler_utils
|
|
, desktop-file-utils
|
|
, wrapGAppsHook
|
|
, python3
|
|
, gsettings-desktop-schemas
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-documents";
|
|
version = "3.34.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gnome-documents/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "1qph567mapg3s1a26k7b8y57g9bklhj2mh8xm758z9zkms20xafq";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkgconfig
|
|
gettext
|
|
itstool
|
|
libxslt
|
|
desktop-file-utils
|
|
docbook_xsl
|
|
docbook_xml_dtd_42
|
|
wrapGAppsHook
|
|
python3
|
|
|
|
# building getting started
|
|
inkscape
|
|
poppler_utils
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
glib
|
|
gsettings-desktop-schemas
|
|
gdk-pixbuf
|
|
gnome3.adwaita-icon-theme
|
|
evince
|
|
libsoup
|
|
webkitgtk
|
|
gjs
|
|
gobject-introspection
|
|
tracker
|
|
tracker-miners
|
|
libgdata
|
|
gnome-desktop
|
|
libzapojit
|
|
libgepub
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
mesonFlags = [
|
|
"-Dgetting_started=true"
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x meson_post_install.py # patchShebangs requires executable file
|
|
patchShebangs meson_post_install.py
|
|
'';
|
|
|
|
preFixup = ''
|
|
substituteInPlace $out/bin/gnome-documents --replace gapplication "${glib.bin}/bin/gapplication"
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = pname;
|
|
attrPath = "gnome3.${pname}";
|
|
};
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|