9f447ca367
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/rdkafka/versions. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 0.11.4 with grep in /nix/store/p7dbh8kabl3bqr28icnkzp55s6636mpl-rdkafka-0.11.4 - directory tree listing: https://gist.github.com/ab8b067a5f31e07af4ed6b1dbdc1a8a4
33 lines
870 B
Nix
33 lines
870 B
Nix
{ stdenv, fetchFromGitHub, zlib, perl, pkgconfig, python }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rdkafka-${version}";
|
|
version = "0.11.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "edenhill";
|
|
repo = "librdkafka";
|
|
rev = "v${version}";
|
|
sha256 = "11ps8sy4v8yvj4sha7d1q3rmhfw7l1rd52rnl01xam9862yasahs";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ zlib perl python ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
|
|
|
|
configureFlags = stdenv.lib.optionals stdenv.isDarwin [ "--disable-ssl" ];
|
|
|
|
postPatch = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "librdkafka - Apache Kafka C/C++ client library";
|
|
homepage = https://github.com/edenhill/librdkafka;
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = with maintainers; [ boothead wkennington ];
|
|
};
|
|
}
|