Merge pull request #237846 from mweinelt/libe-book-icu-patch

libe-book: build with latest icu version

authored by

7c6f434c and committed by
GitHub
3bbd1772 13ab0007

+14 -10
+13 -7
pkgs/development/libraries/libe-book/default.nix
··· 15 stdenv.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 ··· 30 zlib 31 liblangtag 32 ]; 33 - # Boost 1.59 compatibility 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 env.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;
··· 15 stdenv.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 ··· 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;
+1 -3
pkgs/top-level/all-packages.nix
··· 22066 22067 liblscp = callPackage ../development/libraries/liblscp { }; 22068 22069 - libe-book = callPackage ../development/libraries/libe-book { 22070 - icu = icu67; 22071 - }; 22072 22073 libemf2svg = callPackage ../development/libraries/libemf2svg { }; 22074
··· 22066 22067 liblscp = callPackage ../development/libraries/liblscp { }; 22068 22069 + libe-book = callPackage ../development/libraries/libe-book { }; 22070 22071 libemf2svg = callPackage ../development/libraries/libemf2svg { }; 22072