1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

Merge pull request #6565 from rushmorem/cassandra-2.0

Add cassandra 2.0
This commit is contained in:
lethalman 2015-02-26 11:52:36 +01:00
commit dd8c7afcf0
3 changed files with 63 additions and 5 deletions

View file

@ -0,0 +1,50 @@
{ 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 ];
};
}

View file

@ -8,13 +8,19 @@
, getopt
}:
let version = "2.1.3";
in stdenv.mkDerivation rec {
let
version = "2.1.3";
sha256 = "1hzb7h73vr28v9axw85c1987l2i5g4i9ivmgq5mqlv3cv1ng0knz";
in
stdenv.mkDerivation rec {
name = "cassandra-${version}";
src = fetchurl {
inherit sha256;
url = "http://apache.cs.utah.edu/cassandra/${version}/apache-${name}-bin.tar.gz";
sha256 = "1hzb7h73vr28v9axw85c1987l2i5g4i9ivmgq5mqlv3cv1ng0knz";
};
buildInputs = [ makeWrapper ];
@ -39,6 +45,6 @@ in stdenv.mkDerivation rec {
description = "A massively scalable open source NoSQL database";
platforms = with platforms; all;
license = with licenses; asl20;
maintainers = with maintainers; [ nckx ];
maintainers = with maintainers; [ nckx rushmorem ];
};
}

View file

@ -7953,7 +7953,9 @@ let
cadvisor = callPackage ../servers/monitoring/cadvisor { };
cassandra = callPackage ../servers/nosql/cassandra { };
cassandra_2_0 = callPackage ../servers/nosql/cassandra/2.0.nix { };
cassandra_2_1 = callPackage ../servers/nosql/cassandra/2.1.nix { };
cassandra = cassandra_2_1;
apache-jena = callPackage ../servers/nosql/apache-jena/binary.nix {
java = jdk;