1{ lib
2, stdenv
3, fetchurl
4, meson
5, ninja
6, pkg-config
7, glib
8, gobject-introspection
9, gnome
10, webkitgtk_4_1
11, libsoup_3
12, libxml2
13, libarchive
14}:
15
16stdenv.mkDerivation rec {
17 pname = "libgepub";
18 version = "0.7.0";
19
20 src = fetchurl {
21 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
22 sha256 = "IQpMeJXC6E8BpWglArpej6PqiWrzFw+yWS/OHdpW4C4=";
23 };
24
25 nativeBuildInputs = [
26 meson
27 ninja
28 pkg-config
29 gobject-introspection
30 ];
31
32 buildInputs = [
33 glib
34 webkitgtk_4_1
35 libsoup_3
36 libxml2
37 libarchive
38 ];
39
40 doCheck = true;
41
42 passthru = {
43 updateScript = gnome.updateScript {
44 packageName = pname;
45 versionPolicy = "none";
46 };
47 };
48
49 meta = with lib; {
50 description = "GObject based library for handling and rendering epub documents";
51 license = licenses.lgpl21Plus;
52 platforms = platforms.linux;
53 maintainers = teams.gnome.members;
54 };
55}