3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/apps/gnome-books/default.nix

49 lines
1.4 KiB
Nix
Raw Normal View History

2019-03-07 03:28:48 +00:00
{ stdenv, meson, ninja, gettext, fetchurl, evince, gjs
, pkgconfig, gtk3, glib, tracker, tracker-miners, libxslt
2019-05-22 12:03:39 +01:00
, webkitgtk, gnome-desktop, libgepub, gnome3, gdk-pixbuf
2019-03-07 03:28:48 +00:00
, gsettings-desktop-schemas, adwaita-icon-theme, docbook_xsl
, docbook_xml_dtd_42, desktop-file-utils, python3
, gobject-introspection, wrapGAppsHook }:
stdenv.mkDerivation rec {
pname = "gnome-books";
2019-09-02 17:44:36 +01:00
version = "3.34.0";
2019-03-07 03:28:48 +00:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-09-02 17:44:36 +01:00
sha256 = "153vknqisjn5f105avzm933fsc3v0pjzzbwxlqxf8vjjksh1cmya";
2019-03-07 03:28:48 +00:00
};
nativeBuildInputs = [
meson ninja pkgconfig gettext libxslt desktop-file-utils
docbook_xsl docbook_xml_dtd_42 wrapGAppsHook python3
];
buildInputs = [
gtk3 glib gsettings-desktop-schemas
2019-05-22 12:03:39 +01:00
gdk-pixbuf adwaita-icon-theme evince
2019-03-07 03:28:48 +00:00
webkitgtk gjs gobject-introspection tracker
tracker-miners gnome-desktop libgepub
];
postPatch = ''
chmod +x meson_post_install.py # patchShebangs requires executable file
patchShebangs meson_post_install.py
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = "gnome-books";
attrPath = "gnome3.gnome-books";
};
};
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/Books;
description = "An e-book manager application for GNOME";
maintainers = gnome3.maintainers;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}