purePackages.stldict: fix build with gcc 4.9 (ZHF)

This commit is contained in:
Pascal Wittmann 2015-07-12 23:02:12 +02:00
parent d3a4fe374f
commit 4d154c3371

View File

@ -10,6 +10,12 @@ stdenv.mkDerivation rec {
sha256 = "5b894ae6dc574c7022258e2732bea649c82c959ec4d0be13fb5a3e8ba8488f28";
};
postPatch = ''
for f in hashdict.cc orddict.cc; do
sed -i '1i\#include <stddef.h>' $f
done
'';
buildInputs = [ pkgconfig ];
propagatedBuildInputs = [ pure ];
makeFlags = "libdir=$(out)/lib prefix=$(out)/";