diff options
author | Philipp Hausmann <philipp.hausmann@tiko.energy> | 2019-10-03 11:48:29 +0200 |
---|---|---|
committer | Tim Steinbach <NeQuissimus@users.noreply.github.com> | 2019-10-03 13:37:48 -0400 |
commit | 7a9ca5ad1ca8e10df02acbcf330a16e054b72cc0 (patch) | |
tree | 561624840abdec6d9a02b8d16d86f16ddaa44713 /pkgs/servers/apache-kafka | |
parent | 95a3c8d151b085f99ee64f0c1ac6b2fb486ed0f5 (diff) |
kafka: Fix stop script in pure environments
Diffstat (limited to 'pkgs/servers/apache-kafka')
-rw-r--r-- | pkgs/servers/apache-kafka/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/servers/apache-kafka/default.nix b/pkgs/servers/apache-kafka/default.nix index e932b772749a..7b27909856d7 100644 --- a/pkgs/servers/apache-kafka/default.nix +++ b/pkgs/servers/apache-kafka/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, jre, makeWrapper, bash, coreutils, gnugrep, gnused, +{ stdenv, fetchurl, jre, makeWrapper, bash, coreutils, gnugrep, gnused, ps, majorVersion ? "1.0" }: let @@ -62,7 +62,7 @@ stdenv.mkDerivation rec { inherit sha256; }; - buildInputs = [ jre makeWrapper bash gnugrep gnused coreutils ]; + buildInputs = [ jre makeWrapper bash gnugrep gnused coreutils ps ]; installPhase = '' mkdir -p $out @@ -76,6 +76,9 @@ stdenv.mkDerivation rec { substituteInPlace $out/bin/kafka-run-class.sh \ --replace 'LOG_DIR="$base_dir/logs"' 'LOG_DIR="$KAFKA_LOG_DIR"' + substituteInPlace $out/bin/kafka-server-stop.sh \ + --replace 'ps' '${ps}/bin/ps' + for p in $out/bin\/*.sh; do wrapProgram $p \ --set JAVA_HOME "${jre}" \ |