mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
kafka: Fix stop script in pure environments
This commit is contained in:
parent
95a3c8d151
commit
7a9ca5ad1c
@ -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}" \
|
||||
|
Loading…
Reference in New Issue
Block a user