diff options
author | Benjamin Staffin <benley@gmail.com> | 2016-05-28 13:46:46 -0400 |
---|---|---|
committer | Benjamin Staffin <benley@gmail.com> | 2016-05-28 13:46:46 -0400 |
commit | cf5af594686d9741e6d321b94c00d02c52ad6d23 (patch) | |
tree | a6b62e6b2f4ef468a416e284b1935d495f55b8ff /pkgs/servers/apache-kafka | |
parent | ca4e52d62a577bc195a3133fb4741376e84b2f65 (diff) |
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.
Diffstat (limited to 'pkgs/servers/apache-kafka')
-rwxr-xr-x | pkgs/servers/apache-kafka/default.nix | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/pkgs/servers/apache-kafka/default.nix b/pkgs/servers/apache-kafka/default.nix index f1cce14c801b..be9410d30480 100755 --- a/pkgs/servers/apache-kafka/default.nix +++ b/pkgs/servers/apache-kafka/default.nix @@ -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 ]; |