2014-12-03 08:04:42 +01:00
|
|
|
{ stdenv, fetchurl, boost, zlib, libevent, openssl, python, pkgconfig, bison
|
2016-01-07 18:37:18 +01:00
|
|
|
, flex, twisted
|
2014-03-12 13:14:00 +01:00
|
|
|
}:
|
2013-12-13 11:16:40 +01:00
|
|
|
|
2014-12-03 08:04:42 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "thrift-${version}";
|
2017-08-23 11:58:19 +02:00
|
|
|
version = "0.10.0";
|
2013-12-13 11:16:40 +01:00
|
|
|
|
2014-12-03 08:04:42 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://archive.apache.org/dist/thrift/${version}/${name}.tar.gz";
|
2017-08-23 11:58:19 +02:00
|
|
|
sha256 = "02x1xw0l669idkn6xww39j60kqxzcbmim4mvpb5h9nz8wqnx1292";
|
2013-12-13 11:16:40 +01:00
|
|
|
};
|
|
|
|
|
2014-08-14 18:17:50 +02:00
|
|
|
#enableParallelBuilding = true; problems on hydra
|
2014-03-12 13:14:00 +01:00
|
|
|
|
2014-03-17 16:20:55 +01:00
|
|
|
# Workaround to make the python wrapper not drop this package:
|
2014-10-19 19:54:33 +02:00
|
|
|
# pythonFull.buildEnv.override { extraLibs = [ thrift ]; }
|
2014-03-17 16:20:55 +01:00
|
|
|
pythonPath = [];
|
|
|
|
|
2017-09-14 21:24:37 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-03-12 13:14:00 +01:00
|
|
|
buildInputs = [
|
2017-09-14 21:24:37 +02:00
|
|
|
boost zlib libevent openssl python bison flex twisted
|
2014-03-12 13:14:00 +01:00
|
|
|
];
|
2013-12-13 11:16:40 +01:00
|
|
|
|
2014-12-03 08:04:42 +01:00
|
|
|
preConfigure = "export PY_PREFIX=$out";
|
|
|
|
|
|
|
|
# TODO: package boost-test, so we can run the test suite. (Currently it fails
|
|
|
|
# to find libboost_unit_test_framework.a.)
|
|
|
|
configureFlags = "--enable-tests=no";
|
|
|
|
doCheck = false;
|
2013-12-13 11:16:40 +01:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|