diff options
author | Jaka Hudoklin <jaka@x-truder.net> | 2019-08-04 13:05:59 +0200 |
---|---|---|
committer | Jaka Hudoklin <jaka@x-truder.net> | 2019-08-04 13:27:05 +0200 |
commit | b8d3548a560790163ffa735aa621b814edc710b3 (patch) | |
tree | 7937bb978eb441840cfeabc44a775b68fe693c2f /pkgs/servers/confluent-platform | |
parent | 1ac4c0f2463a856cb95a5ad66d54ff91168b4d9e (diff) |
confluent-platform: add confluent-cli tool
Diffstat (limited to 'pkgs/servers/confluent-platform')
-rw-r--r-- | pkgs/servers/confluent-platform/default.nix | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/pkgs/servers/confluent-platform/default.nix b/pkgs/servers/confluent-platform/default.nix index 4d2b9a0b1fba..84985b8f0eb3 100644 --- a/pkgs/servers/confluent-platform/default.nix +++ b/pkgs/servers/confluent-platform/default.nix @@ -1,20 +1,35 @@ -{ stdenv, lib, fetchurl, jre, makeWrapper, bash, gnused }: +{ stdenv, lib, fetchurl, fetchFromGitHub +, jre, makeWrapper, bash, gnused }: -let - scalaVersion = "2.12"; -in stdenv.mkDerivation rec { name = "confluent-platform-${version}"; version = "5.3.0"; + scalaVersion = "2.12"; src = fetchurl { url = "http://packages.confluent.io/archive/${lib.versions.majorMinor version}/confluent-${version}-${scalaVersion}.tar.gz"; sha256 = "14cilq63fib5yvj40504aj6wssi7xw4f7c2jadlzdmdxzh4ixqmp"; }; + confluentCli = fetchFromGitHub { + owner = "confluentinc"; + repo = "confluent-cli"; + rev = "v${version}"; + sha256 = "18yvp56b8l074qfkgr4afirgd43g8b023n9ija6dnk6p6dib1f4j"; + }; + buildInputs = [ jre makeWrapper bash ]; installPhase = '' + cp -R $confluentCli confluent-cli + chmod -R +w confluent-cli + + ( + export CONFLUENT_HOME=$PWD + cd confluent-cli + make install + ) + mkdir -p $out cp -R bin etc share src $out rm -rf $out/bin/windows |