summary refs log tree commit diff
path: root/pkgs/servers/zookeeper
diff options
context:
space:
mode:
authorNathan Bijnens <nathan@nathan.gs>2014-08-24 17:43:45 +0200
committerJaka Hudoklin <jakahudoklin@gmail.com>2014-08-27 13:01:30 +0200
commitac90177cb1f793c7f05b7c3fb33f0bc08bb1334f (patch)
tree915103e143180c092125981e5890405e952d84e1 /pkgs/servers/zookeeper
parentea7c41236825d14bc2a86e25dd951154f1c4e6e5 (diff)
downloadnixpkgs-ac90177cb1f793c7f05b7c3fb33f0bc08bb1334f.tar
nixpkgs-ac90177cb1f793c7f05b7c3fb33f0bc08bb1334f.tar.gz
nixpkgs-ac90177cb1f793c7f05b7c3fb33f0bc08bb1334f.tar.bz2
nixpkgs-ac90177cb1f793c7f05b7c3fb33f0bc08bb1334f.tar.lz
nixpkgs-ac90177cb1f793c7f05b7c3fb33f0bc08bb1334f.tar.xz
nixpkgs-ac90177cb1f793c7f05b7c3fb33f0bc08bb1334f.tar.zst
nixpkgs-ac90177cb1f793c7f05b7c3fb33f0bc08bb1334f.zip
Zookeeper
Diffstat (limited to 'pkgs/servers/zookeeper')
-rwxr-xr-xpkgs/servers/zookeeper/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/servers/zookeeper/default.nix b/pkgs/servers/zookeeper/default.nix
new file mode 100755
index 00000000000..307993a958a
--- /dev/null
+++ b/pkgs/servers/zookeeper/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchurl, jre, makeWrapper, bash }:
+
+stdenv.mkDerivation rec {
+	name = "zookeeper-3.4.6";
+
+	src = fetchurl {
+		url = "mirror://apache/zookeeper/${name}/${name}.tar.gz";
+		sha256 = "01b3938547cd620dc4c93efe07c0360411f4a66962a70500b163b59014046994";
+	};
+
+	buildInputs = [ makeWrapper jre ];
+
+	phases = ["unpackPhase" "installPhase"];
+
+	installPhase = ''
+		mkdir -p $out
+		cp -R conf docs lib ${name}.jar $out
+		mkdir -p $out/bin
+		cp -R bin/{zkCli,zkCleanup,zkEnv}.sh $out/bin
+		for i in $out/bin/{zkCli,zkCleanup}.sh; do
+			wrapProgram $i \
+				--set JAVA_HOME "${jre}" \
+				--prefix PATH : "${bash}/bin"
+		done
+                chmod -x $out/bin/zkEnv.sh
+	'';
+
+	meta = with stdenv.lib; {
+		homepage = "http://zookeeper.apache.org";
+		description = "Apache Zookeeper";
+		license = licenses.asl20;
+		maintainers = [ maintainers.nathan-gs ];	
+		platforms = platforms.unix;	
+	};		
+
+}