2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-11-12 09:05:59 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, fetchurl
|
|
|
|
, evince
|
|
|
|
, gjs
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-11-12 09:05:59 +00:00
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, tracker
|
|
|
|
, tracker-miners
|
|
|
|
, libxslt
|
|
|
|
, webkitgtk
|
|
|
|
, gnome-desktop
|
|
|
|
, libgepub
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-11-12 09:05:59 +00:00
|
|
|
, gdk-pixbuf
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, adwaita-icon-theme
|
2021-05-20 23:08:51 +00:00
|
|
|
, docbook-xsl-nons
|
2020-11-12 09:05:59 +00:00
|
|
|
, docbook_xml_dtd_42
|
|
|
|
, desktop-file-utils
|
|
|
|
, python3
|
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-books";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "40.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-20 23:08:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "0c41l8m2di8h39bmk2fnhpwglwp6qhljmwqqbihzp4ay9976zrc5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-11-12 09:05:59 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-11-12 09:05:59 +00:00
|
|
|
gettext
|
|
|
|
libxslt
|
|
|
|
desktop-file-utils
|
2021-05-20 23:08:51 +00:00
|
|
|
docbook-xsl-nons
|
2020-11-12 09:05:59 +00:00
|
|
|
docbook_xml_dtd_42
|
|
|
|
wrapGAppsHook
|
|
|
|
python3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-11-12 09:05:59 +00:00
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gdk-pixbuf
|
|
|
|
adwaita-icon-theme
|
|
|
|
evince
|
|
|
|
webkitgtk
|
|
|
|
gjs
|
|
|
|
gobject-introspection
|
|
|
|
tracker
|
|
|
|
tracker-miners
|
|
|
|
gnome-desktop
|
|
|
|
libgepub
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = "gnome-books";
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.gnome-books";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Books";
|
|
|
|
description = "An e-book manager application for GNOME";
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|