From e6a486058fd043383a451935f3b5baed24ede59a Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Wed, 11 Mar 2015 16:39:36 -0700 Subject: [PATCH] rdkafka: Cleanup --- .../development/libraries/rdkafka/default.nix | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/pkgs/development/libraries/rdkafka/default.nix b/pkgs/development/libraries/rdkafka/default.nix index cd7cc2e55057..8ba2d52741f0 100644 --- a/pkgs/development/libraries/rdkafka/default.nix +++ b/pkgs/development/libraries/rdkafka/default.nix @@ -1,25 +1,27 @@ -{ stdenv, fetchgit, pkgs }: +{ stdenv, fetchFromGitHub, zlib, perl }: stdenv.mkDerivation rec { + name = "rdkafka-${version}"; version = "0.8.5"; - name = "rdkafka"; - # Maintenance repo for libtar (Arch Linux uses this) - src = fetchgit { - url = "https://github.com/edenhill/librdkafka.git"; - rev = "refs/tags/${version}"; - sha256 = "05a83hmpz1xmnln0wa7n11ijn08zxijdvpdswyymxbdlg69w31y1"; + src = fetchFromGitHub { + owner = "edenhill"; + repo = "librdkafka"; + rev = version; + sha256 = "0qx5dnq9halqaznmbwg44p1wl64pzl485r4054569rbx9y9ak1zy"; }; - patchPhase = "patchShebangs ."; - - buildInputs = [ pkgs.zlib pkgs.perl ]; + buildInputs = [ zlib perl ]; + + 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; - maintainers = [ maintainers.boothead ]; + maintainers = with maintainers; [ boothead wkennington ]; }; }