2015-05-12 08:38:15 +00:00
|
|
|
{ stdenv, fetchurl, gperf, pkgconfig, librevenge, libxml2, boost, icu
|
|
|
|
, cppunit, zlib
|
|
|
|
}:
|
|
|
|
|
2014-06-27 12:06:41 +00:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="libe-book";
|
2015-02-01 14:55:21 +00:00
|
|
|
version="0.1.2";
|
2014-06-27 12:06:41 +00:00
|
|
|
name="${baseName}-${version}";
|
2015-02-01 14:55:21 +00:00
|
|
|
hash="1v48pd32r2pfysr3a3igc4ivcf6vvb26jq4pdkcnq75p70alp2bz";
|
|
|
|
url="mirror://sourceforge/project/libebook/libe-book-0.1.2/libe-book-0.1.2.tar.xz";
|
|
|
|
sha256="1v48pd32r2pfysr3a3igc4ivcf6vvb26jq4pdkcnq75p70alp2bz";
|
2014-06-27 12:06:41 +00:00
|
|
|
};
|
|
|
|
buildInputs = [
|
2015-05-12 08:38:15 +00:00
|
|
|
gperf pkgconfig librevenge libxml2 boost icu cppunit zlib
|
2014-06-27 12:06:41 +00:00
|
|
|
];
|
2015-09-03 21:09:08 +00: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 12:06:41 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2015-09-03 21:09:08 +00:00
|
|
|
inherit buildInputs postPatch;
|
2014-06-27 12:06:41 +00:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2017-01-19 01:18:03 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=unused-function";
|
2014-06-27 12:06:41 +00:00
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
|
|
|
description = ''Library for import of reflowable e-book formats'';
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus ;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|