9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
34 lines
828 B
Nix
34 lines
828 B
Nix
{ stdenv, fetchFromGitHub, zlib, perl, pkg-config, python, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rdkafka";
|
|
version = "1.5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "edenhill";
|
|
repo = "librdkafka";
|
|
rev = "v${version}";
|
|
sha256 = "12cc7l5vpxyrm8ca0cpm8sdl54hb8dranal8sz55r9y8igz1q1wb";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ zlib perl python openssl ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
|
|
|
|
postPatch = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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; [ commandodev ];
|
|
};
|
|
}
|