2017-09-19 04:30:07 +02:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, glib, gobjectIntrospection, gnome3
|
2016-09-18 21:35:23 +02:00
|
|
|
, webkitgtk, libsoup, libxml2, libarchive }:
|
2018-03-03 01:50:15 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "libgepub";
|
2018-03-03 01:54:33 +01:00
|
|
|
version = "0.5.3";
|
2018-03-03 01:50:15 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-03 01:50:15 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-03 01:54:33 +01:00
|
|
|
sha256 = "0gn14k1qnkfj0677i2wc42ig4m8biqib9apk23dnl92m3h1f2lmb";
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2017-09-19 04:30:07 +02:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gobjectIntrospection ];
|
|
|
|
buildInputs = [ glib webkitgtk libsoup libxml2 libarchive ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-03 01:50:15 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GObject based library for handling and rendering epub documents";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|