nixpkgs/pkgs/desktops/gnome-3/core/libgepub/default.nix

35 lines
962 B
Nix
Raw Normal View History

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