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 15 stdenv.mkDerivation rec { 16 16 pname = "libe-book"; 17 17 version = "0.1.3"; 18 + 18 19 src = fetchurl { 19 - url = "https://kent.dl.sourceforge.net/project/libebook/libe-book-${version}/libe-book-${version}.tar.xz"; 20 - sha256 = "sha256-fo2P808ngxrKO8b5zFMsL5DSBXx3iWO4hP89HjTf4fk="; 20 + url = "mirror://sourceforge/libebook/libe-book-${version}/libe-book-${version}.tar.xz"; 21 + hash = "sha256-fo2P808ngxrKO8b5zFMsL5DSBXx3iWO4hP89HjTf4fk="; 21 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 + ''; 22 30 nativeBuildInputs = [ pkg-config ]; 31 + 23 32 buildInputs = [ 24 33 gperf 25 34 librevenge ··· 30 39 zlib 31 40 liblangtag 32 41 ]; 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 - ''; 42 + 38 43 env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-function"; 44 + 39 45 meta = with lib; { 40 46 description = "Library for import of reflowable e-book formats"; 41 47 license = licenses.lgpl21Plus;
+1 -3
pkgs/top-level/all-packages.nix
··· 22066 22066 22067 22067 liblscp = callPackage ../development/libraries/liblscp { }; 22068 22068 22069 - libe-book = callPackage ../development/libraries/libe-book { 22070 - icu = icu67; 22071 - }; 22069 + libe-book = callPackage ../development/libraries/libe-book { }; 22072 22070 22073 22071 libemf2svg = callPackage ../development/libraries/libemf2svg { }; 22074 22072