2015-05-12 10:38:15 +02:00
|
|
|
{ stdenv, fetchurl, gperf, pkgconfig, librevenge, libxml2, boost, icu
|
2018-05-02 00:22:42 +02:00
|
|
|
, cppunit, zlib, liblangtag
|
2015-05-12 10:38:15 +02:00
|
|
|
}:
|
|
|
|
|
2014-06-27 14:06:41 +02:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="libe-book";
|
2018-05-02 00:22:42 +02:00
|
|
|
version="0.1.3";
|
2014-06-27 14:06:41 +02:00
|
|
|
name="${baseName}-${version}";
|
2018-05-02 00:22:42 +02:00
|
|
|
hash="1yg1vws1wggzhjw672bpgh2x541g5i9wryf67g51m0r79zrqz3by";
|
|
|
|
url="https://kent.dl.sourceforge.net/project/libebook/libe-book-0.1.3/libe-book-0.1.3.tar.xz";
|
|
|
|
sha256="1yg1vws1wggzhjw672bpgh2x541g5i9wryf67g51m0r79zrqz3by";
|
2014-06-27 14:06:41 +02:00
|
|
|
};
|
2017-09-14 21:24:37 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-06-27 14:06:41 +02:00
|
|
|
buildInputs = [
|
2018-05-02 00:22:42 +02:00
|
|
|
gperf librevenge libxml2 boost icu cppunit zlib liblangtag
|
2014-06-27 14:06:41 +02:00
|
|
|
];
|
2015-09-03 23:09:08 +02:00
|
|
|
|
|
|
|
# Boost 1.59 compatability fix
|
|
|
|
# Attempt removing when updating
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's,^CPPFLAGS.*,\0 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED,' src/lib/Makefile.in
|
|
|
|
'';
|
2014-06-27 14:06:41 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2017-09-14 21:24:37 +02:00
|
|
|
inherit nativeBuildInputs buildInputs postPatch;
|
2014-06-27 14:06:41 +02:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2017-01-19 02:18:03 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=unused-function";
|
2014-06-27 14:06:41 +02:00
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
|
|
|
description = ''Library for import of reflowable e-book formats'';
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus ;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2018-11-15 22:38:07 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-06-27 14:06:41 +02:00
|
|
|
};
|
|
|
|
}
|