nixpkgs-suyu/pkgs/development/libraries/thrift/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, boost, zlib, libevent, openssl, python, pkgconfig, bison
, flex, twisted
}:
2013-12-13 11:16:40 +01:00
stdenv.mkDerivation rec {
name = "thrift-${version}";
version = "0.11.0";
2013-12-13 11:16:40 +01:00
src = fetchurl {
url = "http://archive.apache.org/dist/thrift/${version}/${name}.tar.gz";
sha256 = "1hk0zb9289gf920rdl0clmwqx6kvygz92nj01lqrhd2arfv3ibf4";
2013-12-13 11:16:40 +01:00
};
#enableParallelBuilding = true; problems on hydra
# Workaround to make the python wrapper not drop this package:
2014-10-19 19:54:33 +02:00
# pythonFull.buildEnv.override { extraLibs = [ thrift ]; }
pythonPath = [];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
boost zlib libevent openssl python bison flex twisted
];
2013-12-13 11:16:40 +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
meta = with stdenv.lib; {
2013-12-13 11:16:40 +01:00
description = "Library for scalable cross-language services";
homepage = http://thrift.apache.org/;
license = licenses.asl20;
2014-10-09 18:57:18 +02:00
platforms = platforms.linux ++ platforms.darwin;
maintainers = [ maintainers.bjornfor ];
2013-12-13 11:16:40 +01:00
};
}