zookeeper: replace tabs with spaces

This commit is contained in:
Charles Strahan 2016-04-27 20:17:01 -04:00
parent 3ae8810ffa
commit 87b9c4a6b6

View File

@ -1,36 +1,36 @@
{ stdenv, fetchurl, jre, makeWrapper, bash }: { stdenv, fetchurl, jre, makeWrapper, bash }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "zookeeper-3.4.6"; name = "zookeeper-3.4.6";
src = fetchurl { src = fetchurl {
url = "mirror://apache/zookeeper/${name}/${name}.tar.gz"; url = "mirror://apache/zookeeper/${name}/${name}.tar.gz";
sha256 = "01b3938547cd620dc4c93efe07c0360411f4a66962a70500b163b59014046994"; sha256 = "01b3938547cd620dc4c93efe07c0360411f4a66962a70500b163b59014046994";
}; };
buildInputs = [ makeWrapper jre ]; buildInputs = [ makeWrapper jre ];
phases = ["unpackPhase" "installPhase"]; phases = ["unpackPhase" "installPhase"];
installPhase = '' installPhase = ''
mkdir -p $out mkdir -p $out
cp -R conf docs lib ${name}.jar $out cp -R conf docs lib ${name}.jar $out
mkdir -p $out/bin mkdir -p $out/bin
cp -R bin/{zkCli,zkCleanup,zkEnv}.sh $out/bin cp -R bin/{zkCli,zkCleanup,zkEnv}.sh $out/bin
for i in $out/bin/{zkCli,zkCleanup}.sh; do for i in $out/bin/{zkCli,zkCleanup}.sh; do
wrapProgram $i \ wrapProgram $i \
--set JAVA_HOME "${jre}" \ --set JAVA_HOME "${jre}" \
--prefix PATH : "${bash}/bin" --prefix PATH : "${bash}/bin"
done done
chmod -x $out/bin/zkEnv.sh chmod -x $out/bin/zkEnv.sh
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "http://zookeeper.apache.org"; homepage = "http://zookeeper.apache.org";
description = "Apache Zookeeper"; description = "Apache Zookeeper";
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.nathan-gs ]; maintainers = [ maintainers.nathan-gs ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }