lol
1{ stdenv, fetchurl, gperf, pkgconfig, librevenge, libxml2, boost, icu
2, cppunit, zlib
3}:
4
5let
6 s = # Generated upstream information
7 rec {
8 baseName="libe-book";
9 version="0.1.2";
10 name="${baseName}-${version}";
11 hash="1v48pd32r2pfysr3a3igc4ivcf6vvb26jq4pdkcnq75p70alp2bz";
12 url="mirror://sourceforge/project/libebook/libe-book-0.1.2/libe-book-0.1.2.tar.xz";
13 sha256="1v48pd32r2pfysr3a3igc4ivcf6vvb26jq4pdkcnq75p70alp2bz";
14 };
15 buildInputs = [
16 gperf pkgconfig librevenge libxml2 boost icu cppunit zlib
17 ];
18
19 # Boost 1.59 compatability fix
20 # Attempt removing when updating
21 postPatch = ''
22 sed -i 's,^CPPFLAGS.*,\0 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED,' src/lib/Makefile.in
23 '';
24in
25stdenv.mkDerivation {
26 inherit (s) name version;
27 inherit buildInputs postPatch;
28 src = fetchurl {
29 inherit (s) url sha256;
30 };
31 meta = {
32 inherit (s) version;
33 description = ''Library for import of reflowable e-book formats'';
34 license = stdenv.lib.licenses.lgpl21Plus ;
35 maintainers = [stdenv.lib.maintainers.raskin];
36 platforms = stdenv.lib.platforms.linux;
37 };
38}