mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 21:17:46 +00:00
972c5641e4
Add Twisted as build input so that we can continue to have Python support. (./configure disables Python support unless it finds the 'trial' program, from Twisted.) I don't know whether upstream intended that, because it seems perfectly fine to run thrift + Python without Twisted. (Only the TTwisted transport uses Twisted...) Ah, Thrift use Twisted in its unit tests. Even when we pass --enable-tests=no to ./configure :-D
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ stdenv, fetchurl, boost, zlib, libevent, openssl, python, pkgconfig, bison
|
|
, flex, twisted
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "thrift-${version}";
|
|
version = "0.9.3";
|
|
|
|
src = fetchurl {
|
|
url = "http://archive.apache.org/dist/thrift/${version}/${name}.tar.gz";
|
|
sha256 = "17lnchan9q3qdg222rgjjai6819j9k755s239phdv6n0183hlx5h";
|
|
};
|
|
|
|
#enableParallelBuilding = true; problems on hydra
|
|
|
|
# Workaround to make the python wrapper not drop this package:
|
|
# pythonFull.buildEnv.override { extraLibs = [ thrift ]; }
|
|
pythonPath = [];
|
|
|
|
buildInputs = [
|
|
boost zlib libevent openssl python pkgconfig bison flex twisted
|
|
];
|
|
|
|
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;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Library for scalable cross-language services";
|
|
homepage = http://thrift.apache.org/;
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|