2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, fetchurl
|
2020-11-12 09:05:59 +00:00
|
|
|
, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
, evince
|
|
|
|
, gjs
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, tracker
|
|
|
|
, tracker-miners
|
|
|
|
, itstool
|
|
|
|
, libxslt
|
|
|
|
, webkitgtk
|
|
|
|
, libgdata
|
|
|
|
, gnome-desktop
|
|
|
|
, libzapojit
|
|
|
|
, libgepub
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, gdk-pixbuf
|
|
|
|
, libsoup
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_42
|
|
|
|
, gobject-introspection
|
2020-09-25 04:45:31 +00:00
|
|
|
, inkscape
|
2020-04-24 23:36:52 +00:00
|
|
|
, poppler_utils
|
|
|
|
, desktop-file-utils
|
|
|
|
, wrapGAppsHook
|
|
|
|
, python3
|
2020-11-12 09:05:59 +00:00
|
|
|
, appstream-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-documents";
|
|
|
|
version = "3.34.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-documents/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1qph567mapg3s1a26k7b8y57g9bklhj2mh8xm758z9zkms20xafq";
|
|
|
|
};
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
patches = [
|
|
|
|
# Fix inkscape 1.0 usage
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-documents/commit/0f55a18c40a61e6ae4ec4652604775f139892350.diff";
|
|
|
|
sha256 = "1yrisq69dl1dn7639drlbza20a5ic6xg04ksr9iq4sxdx3xj3d8s";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
libxslt
|
|
|
|
desktop-file-utils
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_42
|
|
|
|
wrapGAppsHook
|
|
|
|
python3
|
2020-11-12 09:05:59 +00:00
|
|
|
appstream-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# building getting started
|
2020-09-25 04:45:31 +00:00
|
|
|
inkscape
|
2020-04-24 23:36:52 +00:00
|
|
|
poppler_utils
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gdk-pixbuf
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
preConfigure =
|
|
|
|
# To silence inkscape warnings regarding profile directory
|
|
|
|
''
|
|
|
|
export INKSCAPE_PROFILE_DIR="$(mktemp -d)"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-12 09:05:59 +00:00
|
|
|
broken = true; # Tracker 3 not supported and it cannot start Tracker 2.
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Documents";
|
|
|
|
description = "Document manager application designed to work with GNOME 3";
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|