2022-08-31 18:50:41 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gnome
|
|
|
|
, webkitgtk_4_1
|
|
|
|
, libsoup_3
|
|
|
|
, libxml2
|
|
|
|
, libarchive
|
|
|
|
}:
|
2018-03-03 01:50:15 +01:00
|
|
|
|
2018-12-25 04:17:20 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 01:50:15 +01:00
|
|
|
pname = "libgepub";
|
2023-06-17 14:37:32 +02:00
|
|
|
version = "0.7.1";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 18:00:13 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2023-06-17 14:37:32 +02:00
|
|
|
sha256 = "o+SzGiMmWdJqVLkSGziCw9c5fDz0SuXGS4ZwCYC8f2A=";
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
|
2022-08-31 18:50:41 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
webkitgtk_4_1
|
|
|
|
libsoup_3
|
|
|
|
libxml2
|
|
|
|
libarchive
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2022-08-31 18:50:41 +02:00
|
|
|
doCheck = true;
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-03 01:50:15 +01:00
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 01:50:15 +01:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2016-09-18 21:35:23 +02:00
|
|
|
description = "GObject based library for handling and rendering epub documents";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|