Apache Cassandra 2.1.0

This commit is contained in:
Francesco Lazzarino 2014-10-01 14:10:26 -05:00
parent 53d5d55041
commit 17aae5742d
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{stdenv, fetchurl, jre, python, makeWrapper}:
let version = "2.1.0";
in stdenv.mkDerivation rec {
name = "cassandra-${version}";
src = fetchurl {
url = "http://apache.cs.utah.edu/cassandra/${version}/apache-${name}-bin.tar.gz";
sha256 = "da99c4ebc8de925dc6b493443b70d2183cf3090b1aad6b6b918efa9565f264dd";
};
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir $out
mv * $out
for cmd in cassandra nodetool sstablekeys sstableloader sstableupgrade
do wrapProgram $out/bin/$cmd --set JAVA_HOME ${jre}
done
wrapProgram $out/bin/cqlsh --prefix PATH : ${python}
'';
meta = {
homepage = "http://cassandra.apache.org/";
description = "Apache Cassandra is a massively scalable open source NoSQL database.";
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.asl20;
};
}

View File

@ -7093,6 +7093,8 @@ let
sslSupport = true; sslSupport = true;
}); });
cassandra = callPackage ../servers/nosql/cassandra { };
apache-jena = callPackage ../servers/nosql/apache-jena/binary.nix { apache-jena = callPackage ../servers/nosql/apache-jena/binary.nix {
java = icedtea7_jdk; java = icedtea7_jdk;
}; };