2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, pkg-config, libxml2, libzip }:
|
2010-08-16 12:40:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-02 09:12:13 +00:00
|
|
|
pname = "ebook-tools";
|
|
|
|
version = "0.2.2";
|
2010-08-16 12:40:03 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-02 09:12:13 +00:00
|
|
|
url = "mirror://sourceforge/ebook-tools/ebook-tools-${version}.tar.gz";
|
2013-12-04 04:30:16 +00:00
|
|
|
sha256 = "1bi7wsz3p5slb43kj7lgb3r6lb91lvb6ldi556k4y50ix6b5khyb";
|
2010-08-16 12:40:03 +00:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ libxml2 libzip ];
|
2012-02-10 18:33:14 +00:00
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
preConfigure =
|
2012-02-10 18:33:14 +00:00
|
|
|
''
|
|
|
|
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags libzip)"
|
|
|
|
'';
|
2010-08-16 12:40:03 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://ebook-tools.sourceforge.net";
|
2012-02-10 18:33:14 +00:00
|
|
|
description = "Tools and library for dealing with various ebook file formats";
|
2017-03-27 17:11:17 +00:00
|
|
|
maintainers = [ ];
|
2020-12-31 07:48:55 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.mit;
|
2010-08-16 12:40:03 +00:00
|
|
|
};
|
|
|
|
}
|