Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 51 lines 985 B 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 19 src = fetchurl { 20 url = "mirror://sourceforge/libebook/libe-book-${version}/libe-book-${version}.tar.xz"; 21 hash = "sha256-fo2P808ngxrKO8b5zFMsL5DSBXx3iWO4hP89HjTf4fk="; 22 }; 23 24 # restore compatibility with icu68+ 25 postPatch = '' 26 substituteInPlace src/lib/EBOOKCharsetConverter.cpp --replace \ 27 "TRUE, TRUE, &status)" \ 28 "true, true, &status)" 29 ''; 30 nativeBuildInputs = [ pkg-config ]; 31 32 buildInputs = [ 33 gperf 34 librevenge 35 libxml2 36 boost 37 icu 38 cppunit 39 zlib 40 liblangtag 41 ]; 42 43 env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-function"; 44 45 meta = with lib; { 46 description = "Library for import of reflowable e-book formats"; 47 license = licenses.lgpl21Plus; 48 maintainers = with maintainers; [ raskin ]; 49 platforms = platforms.unix; 50 }; 51}