mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
a07a127237
Fix compatibility with the latest icu version and refactor the derivation slightly. Updates the fetcher to use the sourceforge mirror over the unresolvable kent mirror. Remove icu58 workaround, it is not required anymore.
52 lines
985 B
Nix
52 lines
985 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, gperf
|
|
, pkg-config
|
|
, librevenge
|
|
, libxml2
|
|
, boost
|
|
, icu
|
|
, cppunit
|
|
, zlib
|
|
, liblangtag
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libe-book";
|
|
version = "0.1.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/libebook/libe-book-${version}/libe-book-${version}.tar.xz";
|
|
hash = "sha256-fo2P808ngxrKO8b5zFMsL5DSBXx3iWO4hP89HjTf4fk=";
|
|
};
|
|
|
|
# restore compatibility with icu68+
|
|
postPatch = ''
|
|
substituteInPlace src/lib/EBOOKCharsetConverter.cpp --replace \
|
|
"TRUE, TRUE, &status)" \
|
|
"true, true, &status)"
|
|
'';
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
gperf
|
|
librevenge
|
|
libxml2
|
|
boost
|
|
icu
|
|
cppunit
|
|
zlib
|
|
liblangtag
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-function";
|
|
|
|
meta = with lib; {
|
|
description = "Library for import of reflowable e-book formats";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|