libe-book: enable strictDeps / parallel building, clean up

The unused function issue was fixed in 0.1.3

https://sourceforge.net/p/libebook/code/ci/8ddc3aff0b6bfc5678ef48d716a99f5aaf385004/

+12 -9
+12 -9
pkgs/by-name/li/libe-book/package.nix
··· 13 liblangtag, 14 }: 15 16 - stdenv.mkDerivation rec { 17 pname = "libe-book"; 18 version = "0.1.3"; 19 20 src = fetchurl { 21 - url = "mirror://sourceforge/libebook/libe-book-${version}/libe-book-${version}.tar.xz"; 22 hash = "sha256-fo2P808ngxrKO8b5zFMsL5DSBXx3iWO4hP89HjTf4fk="; 23 }; 24 25 # restore compatibility with icu68+ 26 postPatch = '' 27 - substituteInPlace src/lib/EBOOKCharsetConverter.cpp --replace \ 28 "TRUE, TRUE, &status)" \ 29 "true, true, &status)" 30 ''; ··· 44 liblangtag 45 ]; 46 47 - env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-function"; 48 49 - meta = with lib; { 50 description = "Library for import of reflowable e-book formats"; 51 - license = licenses.lgpl21Plus; 52 - maintainers = with maintainers; [ raskin ]; 53 - platforms = platforms.unix; 54 }; 55 - }
··· 13 liblangtag, 14 }: 15 16 + stdenv.mkDerivation (finalAttrs: { 17 pname = "libe-book"; 18 version = "0.1.3"; 19 20 src = fetchurl { 21 + url = "mirror://sourceforge/libebook/libe-book-${finalAttrs.version}/libe-book-${finalAttrs.version}.tar.xz"; 22 hash = "sha256-fo2P808ngxrKO8b5zFMsL5DSBXx3iWO4hP89HjTf4fk="; 23 }; 24 25 # restore compatibility with icu68+ 26 + # https://sourceforge.net/p/libebook/code/ci/edc7a50a06f56992fe21a80afb4f20fbdc5654ed/ 27 postPatch = '' 28 + substituteInPlace src/lib/EBOOKCharsetConverter.cpp --replace-fail \ 29 "TRUE, TRUE, &status)" \ 30 "true, true, &status)" 31 ''; ··· 45 liblangtag 46 ]; 47 48 + strictDeps = true; 49 + 50 + enableParallelBuilding = true; 51 52 + meta = { 53 description = "Library for import of reflowable e-book formats"; 54 + license = lib.licenses.lgpl21Plus; 55 + maintainers = with lib.maintainers; [ raskin ]; 56 + platforms = lib.platforms.unix; 57 }; 58 + })