summary refs log tree commit diff
path: root/pkgs/servers/zookeeper
diff options
context:
space:
mode:
authorJoel Thompson <joel@jthompson.io>2017-07-11 10:56:58 -0400
committerJoel Thompson <joel@jthompson.io>2017-07-21 09:45:37 -0400
commit4b42fc4b8a969dc4621c76d556309021591a17a2 (patch)
treed917e44b3f47bc6197b689157a97b129f80b545f /pkgs/servers/zookeeper
parent91dc81156647c5d28e77dfd20d5c2f4b7253c742 (diff)
downloadnixpkgs-4b42fc4b8a969dc4621c76d556309021591a17a2.tar
nixpkgs-4b42fc4b8a969dc4621c76d556309021591a17a2.tar.gz
nixpkgs-4b42fc4b8a969dc4621c76d556309021591a17a2.tar.bz2
nixpkgs-4b42fc4b8a969dc4621c76d556309021591a17a2.tar.lz
nixpkgs-4b42fc4b8a969dc4621c76d556309021591a17a2.tar.xz
nixpkgs-4b42fc4b8a969dc4621c76d556309021591a17a2.tar.zst
nixpkgs-4b42fc4b8a969dc4621c76d556309021591a17a2.zip
exhibitor: init at 3.4.9
Initial Exhibitor nix package and nixos module for Netflix's Exhibitor,
which is a manager for Apache Zookeeper.
Diffstat (limited to 'pkgs/servers/zookeeper')
-rw-r--r--pkgs/servers/zookeeper/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/servers/zookeeper/default.nix b/pkgs/servers/zookeeper/default.nix
index 16807a6571c..b3a9ad44484 100644
--- a/pkgs/servers/zookeeper/default.nix
+++ b/pkgs/servers/zookeeper/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, jre, makeWrapper, bash }:
+{ stdenv, fetchurl, jre, makeWrapper, bash, coreutils }:
 
 stdenv.mkDerivation rec {
   name = "zookeeper-${version}";
@@ -17,12 +17,15 @@ stdenv.mkDerivation rec {
     mkdir -p $out
     cp -R conf docs lib ${name}.jar $out
     mkdir -p $out/bin
-    cp -R bin/{zkCli,zkCleanup,zkEnv}.sh $out/bin
+    cp -R bin/{zkCli,zkCleanup,zkEnv,zkServer}.sh $out/bin
     for i in $out/bin/{zkCli,zkCleanup}.sh; do
       wrapProgram $i \
         --set JAVA_HOME "${jre}" \
         --prefix PATH : "${bash}/bin"
     done
+    substituteInPlace $out/bin/zkServer.sh \
+        --replace /bin/echo ${coreutils}/bin/echo \
+        --replace "/usr/bin/env bash" ${bash}/bin/bash
     chmod -x $out/bin/zkEnv.sh
 
     mkdir -p $out/share/zooinspector