Merge pull request #4379 from flazz/master

cassandra: environment fix for cassandra shell script
This commit is contained in:
Aristid Breitkreuz 2014-10-04 19:25:37 +02:00
commit 25333bd565

View File

@ -1,4 +1,12 @@
{stdenv, fetchurl, jre, python, makeWrapper}: { stdenv
, fetchurl
, jre
, python
, makeWrapper
, gawk
, bash
, getopt
}:
let version = "2.1.0"; let version = "2.1.0";
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
@ -16,10 +24,14 @@ in stdenv.mkDerivation rec {
mv * $out mv * $out
for cmd in cassandra nodetool sstablekeys sstableloader sstableupgrade for cmd in cassandra nodetool sstablekeys sstableloader sstableupgrade
do wrapProgram $out/bin/$cmd --set JAVA_HOME ${jre} do wrapProgram $out/bin/$cmd \
--set JAVA_HOME ${jre} \
--prefix PATH : ${bash}/bin \
--prefix PATH : ${getopt}/bin \
--prefix PATH : ${gawk}/bin
done done
wrapProgram $out/bin/cqlsh --prefix PATH : ${python} wrapProgram $out/bin/cqlsh --prefix PATH : ${python}/bin
''; '';
meta = { meta = {