2014-12-03 07:04:42 +00:00
|
|
|
{ stdenv, fetchurl, boost, zlib, libevent, openssl, python, pkgconfig, bison
|
2016-01-07 17:37:18 +00:00
|
|
|
, flex, twisted
|
2014-03-12 12:14:00 +00:00
|
|
|
}:
|
2013-12-13 10:16:40 +00:00
|
|
|
|
2014-12-03 07:04:42 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "thrift-${version}";
|
2019-03-15 20:52:49 +00:00
|
|
|
version = "0.12.0";
|
2013-12-13 10:16:40 +00:00
|
|
|
|
2014-12-03 07:04:42 +00:00
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://archive.apache.org/dist/thrift/${version}/${name}.tar.gz";
|
2019-03-15 20:52:49 +00:00
|
|
|
sha256 = "0a04v7dgm1qzgii7v0sisnljhxc9xpq2vxkka60scrdp6aahjdn3";
|
2013-12-13 10:16:40 +00:00
|
|
|
};
|
|
|
|
|
2014-08-14 17:17:50 +01:00
|
|
|
#enableParallelBuilding = true; problems on hydra
|
2014-03-12 12:14:00 +00:00
|
|
|
|
2014-03-17 15:20:55 +00:00
|
|
|
# Workaround to make the python wrapper not drop this package:
|
2014-10-19 18:54:33 +01:00
|
|
|
# pythonFull.buildEnv.override { extraLibs = [ thrift ]; }
|
2014-03-17 15:20:55 +00:00
|
|
|
pythonPath = [];
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-03-12 12:14:00 +00:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01:00
|
|
|
boost zlib libevent openssl python bison flex twisted
|
2014-03-12 12:14:00 +00:00
|
|
|
];
|
2013-12-13 10:16:40 +00:00
|
|
|
|
2014-12-03 07:04:42 +00: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.)
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--enable-tests=no" ];
|
2014-12-03 07:04:42 +00:00
|
|
|
doCheck = false;
|
2013-12-13 10:16:40 +00:00
|
|
|
|
2014-03-12 12:14:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-12-13 10:16:40 +00:00
|
|
|
description = "Library for scalable cross-language services";
|
2014-03-12 12:14:00 +00:00
|
|
|
homepage = http://thrift.apache.org/;
|
|
|
|
license = licenses.asl20;
|
2014-10-09 17:57:18 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-03-12 12:14:00 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-12-13 10:16:40 +00:00
|
|
|
};
|
|
|
|
}
|