forked from mirrors/nixpkgs
apache-kafka: retain 0.8.x and 0.9.x
Should make it a little easier for users who need time to plan for the major 0.9 update.
This commit is contained in:
parent
ca4e52d62a
commit
cf5af59468
|
@ -1,18 +1,28 @@
|
|||
{ stdenv, fetchurl, jre, makeWrapper, bash }:
|
||||
{ stdenv, fetchurl, jre, makeWrapper, bash,
|
||||
majorVersion ? "0.9" }:
|
||||
|
||||
let
|
||||
kafkaVersion = "0.9.0.1";
|
||||
scalaVersion = "2.11";
|
||||
|
||||
versionMap = {
|
||||
"0.8" = { kafkaVersion = "0.8.2.1";
|
||||
scalaVersion = "2.10";
|
||||
sha256 = "1klri23fjxbzv7rmi05vcqqfpy7dzi1spn2084y1dxsi1ypfkvc9";
|
||||
};
|
||||
"0.9" = { kafkaVersion = "0.9.0.1";
|
||||
scalaVersion = "2.11";
|
||||
sha256 = "0ykcjv5dz9i5bws9my2d60pww1g9v2p2nqr67h0i2xrjm7az8a6v";
|
||||
};
|
||||
};
|
||||
in
|
||||
|
||||
with versionMap.${majorVersion};
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "${scalaVersion}-${kafkaVersion}";
|
||||
name = "apache-kafka-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/kafka/${kafkaVersion}/kafka_${version}.tgz";
|
||||
sha256 = "0ykcjv5dz9i5bws9my2d60pww1g9v2p2nqr67h0i2xrjm7az8a6v";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ jre makeWrapper bash ];
|
||||
|
|
|
@ -5845,7 +5845,9 @@ in
|
|||
|
||||
apacheAnt = callPackage ../development/tools/build-managers/apache-ant { };
|
||||
|
||||
apacheKafka = callPackage ../servers/apache-kafka { };
|
||||
apacheKafka = apacheKafka_0_9;
|
||||
apacheKafka_0_8 = callPackage ../servers/apache-kafka { majorVersion = "0.8"; };
|
||||
apacheKafka_0_9 = callPackage ../servers/apache-kafka { majorVersion = "0.9"; };
|
||||
|
||||
astyle = callPackage ../development/tools/misc/astyle { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue