thrift: fix for pkgsStatic

This commit is contained in:
Tobias Mayer 2021-01-18 09:03:28 +01:00
parent 2c18940df0
commit 38d4c0b293
No known key found for this signature in database
GPG Key ID: F8657E90819A1298

View File

@ -25,9 +25,9 @@ stdenv.mkDerivation rec {
# pythonFull.buildEnv.override { extraLibs = [ thrift ]; }
pythonPath = [];
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ boost zlib libevent openssl python bison flex ]
++ stdenv.lib.optional (!static) twisted;
nativeBuildInputs = [ cmake pkgconfig bison flex ];
buildInputs = [ boost zlib libevent openssl ]
++ stdenv.lib.optionals (!static) [ python twisted ];
preConfigure = "export PY_PREFIX=$out";