nixpkgs-suyu/pkgs/development/libraries/thrift/default.nix
Bjørn Forsman 83d0fd3078 thrift: unbreak build
Add a tiny patch (already upstream) that fixes this build error:

  <flex>/lib/libfl.so: undefined reference to `yylex'
2014-04-23 21:51:21 +02:00

41 lines
1.3 KiB
Nix

{ stdenv, fetchgit, boost, zlib, libevent, openssl, python, automake, autoconf
, libtool, pkgconfig, bison, flex
}:
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";
};
enableParallelBuilding = true;
# 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 ];
# Workaround to make the python wrapper not drop this package:
# pythonFull.override { extraLibs = [ thrift ]; }
pythonPath = [];
buildInputs = [
boost zlib libevent openssl python automake autoconf libtool pkgconfig
bison flex
];
preConfigure = "sh bootstrap.sh; export PY_PREFIX=$out";
meta = with stdenv.lib; {
description = "Library for scalable cross-language services";
homepage = http://thrift.apache.org/;
license = licenses.asl20;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}