zookeeper: patch shebangs in output scripts

This commit is contained in:
Jaka Hudoklin 2018-07-07 11:33:04 +02:00
parent 6e9c7f0ad5
commit ce32952d15

View File

@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
cp -R conf docs lib ${name}.jar $out
mkdir -p $out/bin
cp -R bin/{zkCli,zkCleanup,zkEnv,zkServer}.sh $out/bin
patchShebangs $out/bin
for i in $out/bin/{zkCli,zkCleanup,zkServer}.sh; do
wrapProgram $i \
--set JAVA_HOME "${jre}" \