Files
nixpkgs/pkgs/by-name/li/libe-book/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchurl,
gperf,
pkg-config,
librevenge,
libxml2,
boost,
icu,
cppunit,
zlib,
liblangtag,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libe-book";
version = "0.1.3";
src = fetchurl {
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-fail \
"TRUE, TRUE, &status)" \
"true, true, &status)"
'';
nativeBuildInputs = [
pkg-config
gperf
];
buildInputs = [
librevenge
libxml2
boost
icu
cppunit
zlib
liblangtag
];
strictDeps = true;
enableParallelBuilding = true;
meta = {
description = "Library for import of reflowable e-book formats";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ raskin ];
platforms = lib.platforms.unix;
};
})