2015-07-15 01:18:08 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, jre
|
|
|
|
, python
|
|
|
|
, makeWrapper
|
|
|
|
, gawk
|
|
|
|
, bash
|
|
|
|
, getopt
|
|
|
|
, procps
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
version = "1.2.19";
|
|
|
|
sha256 = "0zkq3ggpk8ra2siar43vmrn6lmvn902p1g2lrgb46ak1vii6w30w";
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cassandra-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
inherit sha256;
|
2015-09-02 19:58:44 +02:00
|
|
|
url = "mirror://apache/cassandra/${version}/apache-${name}-bin.tar.gz";
|
2015-07-15 01:18:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
mv * $out
|
|
|
|
|
|
|
|
for cmd in cassandra nodetool sstablekeys sstableloader sstableupgrade
|
|
|
|
do wrapProgram $out/bin/$cmd \
|
|
|
|
--set JAVA_HOME ${jre} \
|
|
|
|
--prefix PATH : ${bash}/bin \
|
|
|
|
--prefix PATH : ${getopt}/bin \
|
|
|
|
--prefix PATH : ${gawk}/bin \
|
|
|
|
--prefix PATH : ${procps}/bin
|
|
|
|
done
|
|
|
|
|
|
|
|
wrapProgram $out/bin/cqlsh --prefix PATH : ${python}/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://cassandra.apache.org/;
|
|
|
|
description = "A massively scalable open source NoSQL database";
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.all;
|
2015-07-15 01:18:08 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ bcarrell ];
|
|
|
|
};
|
|
|
|
}
|