mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #4379 from flazz/master
cassandra: environment fix for cassandra shell script
This commit is contained in:
commit
25333bd565
1 changed files with 15 additions and 3 deletions
|
@ -1,4 +1,12 @@
|
|||
{stdenv, fetchurl, jre, python, makeWrapper}:
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, jre
|
||||
, python
|
||||
, makeWrapper
|
||||
, gawk
|
||||
, bash
|
||||
, getopt
|
||||
}:
|
||||
|
||||
let version = "2.1.0";
|
||||
in stdenv.mkDerivation rec {
|
||||
|
@ -16,10 +24,14 @@ in stdenv.mkDerivation rec {
|
|||
mv * $out
|
||||
|
||||
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
|
||||
|
||||
wrapProgram $out/bin/cqlsh --prefix PATH : ${python}
|
||||
wrapProgram $out/bin/cqlsh --prefix PATH : ${python}/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue