at 23.05-pre 45 lines 1.0 kB view raw
1{ lib 2, stdenv 3, fetchurl 4, gperf 5, pkg-config 6, librevenge 7, libxml2 8, boost 9, icu 10, cppunit 11, zlib 12, liblangtag 13}: 14 15stdenv.mkDerivation rec { 16 pname = "libe-book"; 17 version = "0.1.3"; 18 src = fetchurl { 19 url = "https://kent.dl.sourceforge.net/project/libebook/libe-book-${version}/libe-book-${version}.tar.xz"; 20 sha256 = "sha256-fo2P808ngxrKO8b5zFMsL5DSBXx3iWO4hP89HjTf4fk="; 21 }; 22 nativeBuildInputs = [ pkg-config ]; 23 buildInputs = [ 24 gperf 25 librevenge 26 libxml2 27 boost 28 icu 29 cppunit 30 zlib 31 liblangtag 32 ]; 33 # Boost 1.59 compatability fix 34 # Attempt removing when updating 35 postPatch = '' 36 sed -i 's,^CPPFLAGS.*,\0 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED,' src/lib/Makefile.in 37 ''; 38 NIX_CFLAGS_COMPILE = "-Wno-error=unused-function"; 39 meta = with lib; { 40 description = "Library for import of reflowable e-book formats"; 41 license = licenses.lgpl21Plus; 42 maintainers = with maintainers; [ raskin ]; 43 platforms = platforms.unix; 44 }; 45}