diff --git a/pkgs/by-name/li/libe-book/package.nix b/pkgs/by-name/li/libe-book/package.nix index 69724c9d5343..4f03d36e08c4 100644 --- a/pkgs/by-name/li/libe-book/package.nix +++ b/pkgs/by-name/li/libe-book/package.nix @@ -13,18 +13,19 @@ liblangtag, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "libe-book"; version = "0.1.3"; src = fetchurl { - url = "mirror://sourceforge/libebook/libe-book-${version}/libe-book-${version}.tar.xz"; + url = "mirror://sourceforge/libebook/libe-book-${finalAttrs.version}/libe-book-${finalAttrs.version}.tar.xz"; hash = "sha256-fo2P808ngxrKO8b5zFMsL5DSBXx3iWO4hP89HjTf4fk="; }; # restore compatibility with icu68+ + # https://sourceforge.net/p/libebook/code/ci/edc7a50a06f56992fe21a80afb4f20fbdc5654ed/ postPatch = '' - substituteInPlace src/lib/EBOOKCharsetConverter.cpp --replace \ + substituteInPlace src/lib/EBOOKCharsetConverter.cpp --replace-fail \ "TRUE, TRUE, &status)" \ "true, true, &status)" ''; @@ -44,12 +45,14 @@ stdenv.mkDerivation rec { liblangtag ]; - env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-function"; + strictDeps = true; - meta = with lib; { + enableParallelBuilding = true; + + meta = { description = "Library for import of reflowable e-book formats"; - license = licenses.lgpl21Plus; - maintainers = with maintainers; [ raskin ]; - platforms = platforms.unix; + license = lib.licenses.lgpl21Plus; + maintainers = with lib.maintainers; [ raskin ]; + platforms = lib.platforms.unix; }; -} +})