thrift: propagate interface dependencies

Also: Fix CMake `find_package(thrift)` by installing the required
`FindLibevent.cmake` module.
This commit is contained in:
Tobias Mayer
2023-01-28 14:10:17 +01:00
committed by Florian Brandes
parent 6f4db5eca4
commit e0dcff79cc

View File

@@ -36,11 +36,14 @@ stdenv.mkDerivation rec {
buildInputs = [
boost
] ++ lib.optionals (!static) [
(python3.withPackages (ps: [ps.twisted]))
];
propagatedBuildInputs = [
libevent
openssl
zlib
] ++ lib.optionals (!static) [
(python3.withPackages (ps: [ps.twisted]))
];
postPatch = ''
@@ -66,6 +69,11 @@ stdenv.mkDerivation rec {
url = "https://github.com/apache/thrift/commit/c41ad9d5119e9bdae1746167e77e224f390f2c42.diff";
hash = "sha256-FkErrg/6vXTomS4AsCsld7t+Iccc55ZiDaNjJ3W1km0=";
})
(fetchpatch {
name = "thrift-install-FindLibevent.patch"; # https://github.com/apache/thrift/pull/2726
url = "https://github.com/apache/thrift/commit/2ab850824f75d448f2ba14a468fb77d2594998df.diff";
hash = "sha256-ejMKFG/cJgoPlAFzVDPI4vIIL7URqaG06/IWdQ2NkhY=";
})
];
cmakeFlags = [