3
0
Fork 0
forked from mirrors/nixpkgs

confluent: init at 4.1.1-2.11 (#43137)

This commit is contained in:
Jaka Hudoklin 2018-08-01 21:35:42 +02:00 committed by xeji
parent 9caf7ec5a4
commit e4ca48c224
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ stdenv, lib, fetchurl, jre, makeWrapper, bash, gnused }:
with lib;
let
confluentVersion = "4.1.1";
scalaVersion = "2.11";
sha256 = "e00eb4c6c7445ad7a43c9cd237778d1cd184322aebf5ff64a8e9806ba2cc27aa";
in stdenv.mkDerivation rec {
name = "confluent-${version}";
version = "${confluentVersion}-${scalaVersion}";
src = fetchurl {
url = "http://packages.confluent.io/archive/${versions.majorMinor confluentVersion}/confluent-oss-${version}.tar.gz";
inherit sha256;
};
buildInputs = [ jre makeWrapper bash ];
installPhase = ''
mkdir -p $out
cp -R bin etc share src $out
rm -rf $out/bin/windows
patchShebangs $out/bin
# allow us the specify logging directory using env
substituteInPlace $out/bin/kafka-run-class \
--replace 'LOG_DIR="$base_dir/logs"' 'LOG_DIR="$KAFKA_LOG_DIR"'
substituteInPlace $out/bin/ksql-run-class \
--replace 'LOG_DIR="$base_dir/logs"' 'LOG_DIR="$KAFKA_LOG_DIR"'
for p in $out/bin\/*; do
wrapProgram $p \
--set JAVA_HOME "${jre}" \
--set KAFKA_LOG_DIR "/tmp/apache-kafka-logs" \
--prefix PATH : "${bash}/bin:${gnused}/bin"
done
'';
meta = with stdenv.lib; {
homepage = https://www.confluent.io/;
description = "Confluent platform";
license = licenses.asl20;
maintainers = [ maintainers.offline ];
platforms = platforms.unix;
};
}

View file

@ -7970,6 +7970,8 @@ with pkgs;
corundum = callPackage ../development/tools/corundum { };
confluent = callPackage ../servers/confluent {};
ctags = callPackage ../development/tools/misc/ctags { };
ctagsWrapped = callPackage ../development/tools/misc/ctags/wrapped.nix {};