libe-book: Boost 1.59 compat

This commit is contained in:
William A. Kennington III 2015-09-03 14:09:08 -07:00
parent 6fc70d6b2e
commit 677fe9f934

View file

@ -15,10 +15,16 @@ let
buildInputs = [
gperf pkgconfig librevenge libxml2 boost icu cppunit zlib
];
# 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
'';
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
inherit buildInputs postPatch;
src = fetchurl {
inherit (s) url sha256;
};