925f5798f5
According to the project website (http://cassandra.apache.org) version 2.0 is the most stable version. It's the one that's recommended if you are already in production or going into production soon. Cassandra 2.0 is also the version that's officially supported by Titan (http://thinkaurelius.github.io/titan), a distributed graph database that uses cassandra as one of it's backends.
50 lines
1 KiB
Nix
50 lines
1 KiB
Nix
{ stdenv
|
|
, fetchurl
|
|
, jre
|
|
, python
|
|
, makeWrapper
|
|
, gawk
|
|
, bash
|
|
, getopt
|
|
}:
|
|
|
|
let
|
|
|
|
version = "2.0.12";
|
|
sha256 = "125yga0h155fwp5kvgv57y5yyv7x4inib4fp9xsckmc7n7kmjvxg";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cassandra-${version}";
|
|
|
|
src = fetchurl {
|
|
inherit sha256;
|
|
url = "http://apache.cs.utah.edu/cassandra/${version}/apache-${name}-bin.tar.gz";
|
|
};
|
|
|
|
buildInputs = [ 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
|
|
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";
|
|
platforms = with platforms; all;
|
|
license = with licenses; asl20;
|
|
maintainers = with maintainers; [ nckx rushmorem ];
|
|
};
|
|
}
|