mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
Merge pull request #4379 from flazz/master
cassandra: environment fix for cassandra shell script
This commit is contained in:
commit
25333bd565
@ -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 New Issue
Block a user