2014-03-12 13:14:00 +01:00
|
|
|
{ stdenv, fetchgit, boost, zlib, libevent, openssl, python, automake, autoconf
|
|
|
|
, libtool, pkgconfig, bison, flex
|
|
|
|
}:
|
2013-12-13 11:16:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "thrift-0.9.1";
|
|
|
|
|
|
|
|
# I take git, because the tarball is broken.
|
|
|
|
# http://stackoverflow.com/questions/18643642/libtool-error-building-thrift-0-9-1-on-ubuntu-13-04
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git-wip-us.apache.org/repos/asf/thrift.git";
|
|
|
|
rev = "ff980c1432936c6bc897c60469ab05b5e0c6cb5e";
|
|
|
|
md5 = "466aca9e43e43df868f4385af50e32f6";
|
|
|
|
};
|
|
|
|
|
2014-08-14 18:17:50 +02:00
|
|
|
#enableParallelBuilding = true; problems on hydra
|
2014-03-12 13:14:00 +01:00
|
|
|
|
2014-04-23 21:51:21 +02:00
|
|
|
# Fixes build error: <flex>/lib/libfl.so: undefined reference to `yylex'.
|
|
|
|
# Patch exists in upstream git repo, so it can be removed on the next version
|
|
|
|
# bump.
|
|
|
|
patches = [ ./yylex.patch ];
|
|
|
|
|
2014-03-17 16:20:55 +01:00
|
|
|
# Workaround to make the python wrapper not drop this package:
|
2014-10-12 18:24:16 +02:00
|
|
|
# pythonFullBuildEnv.override { extraLibs = [ thrift ]; }
|
2014-03-17 16:20:55 +01:00
|
|
|
pythonPath = [];
|
|
|
|
|
2014-03-12 13:14:00 +01:00
|
|
|
buildInputs = [
|
|
|
|
boost zlib libevent openssl python automake autoconf libtool pkgconfig
|
|
|
|
bison flex
|
|
|
|
];
|
2013-12-13 11:16:40 +01:00
|
|
|
|
|
|
|
preConfigure = "sh bootstrap.sh; export PY_PREFIX=$out";
|
|
|
|
|
2014-03-12 13:14:00 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-12-13 11:16:40 +01:00
|
|
|
description = "Library for scalable cross-language services";
|
2014-03-12 13:14:00 +01:00
|
|
|
homepage = http://thrift.apache.org/;
|
|
|
|
license = licenses.asl20;
|
2014-10-09 18:57:18 +02:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-03-12 13:14:00 +01:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-12-13 11:16:40 +01:00
|
|
|
};
|
|
|
|
}
|