From 2f258db04c45f101678fcfadd293cb4da6602eb8 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Wed, 25 Jun 2025 21:17:53 +0200 Subject: [PATCH] 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/ --- pkgs/by-name/li/libe-book/package.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) 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; }; -} +})