From ce32952d154da4f8c6576004c823e2db970cab30 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Sat, 7 Jul 2018 11:33:04 +0200 Subject: [PATCH] zookeeper: patch shebangs in output scripts --- pkgs/servers/zookeeper/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/zookeeper/default.nix b/pkgs/servers/zookeeper/default.nix index 3f2bb8e8b42e..6a657cc634f3 100644 --- a/pkgs/servers/zookeeper/default.nix +++ b/pkgs/servers/zookeeper/default.nix @@ -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}" \