nixpkgs/pkgs/development/libraries/libe-book/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1014 B
Nix
Raw Normal View History

2021-12-21 11:55:59 +00:00
{ lib
, stdenv
, fetchurl
, gperf
, pkg-config
, librevenge
, libxml2
, boost
, icu
, cppunit
, zlib
, liblangtag
}:
2021-12-21 11:55:59 +00:00
stdenv.mkDerivation rec {
pname = "libe-book";
version = "0.1.3";
src = fetchurl {
url = "https://kent.dl.sourceforge.net/project/libebook/libe-book-${version}/libe-book-${version}.tar.xz";
sha256 = "sha256-fo2P808ngxrKO8b5zFMsL5DSBXx3iWO4hP89HjTf4fk=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
2021-12-21 11:55:59 +00:00
gperf
librevenge
libxml2
boost
icu
cppunit
zlib
liblangtag
];
2015-09-03 21:09:08 +00:00
# Boost 1.59 compatability fix
# Attempt removing when updating
postPatch = ''
sed -i 's,^CPPFLAGS.*,\0 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED,' src/lib/Makefile.in
'';
env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-function";
2021-12-21 11:55:59 +00:00
meta = with lib; {
description = "Library for import of reflowable e-book formats";
2021-12-21 11:55:59 +00:00
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ raskin ];
platforms = platforms.unix;
};
}