Merge pull request #16254 from NeQuissimus/cassandra30
cassandra: Add 3.0
This commit is contained in:
commit
175e20ca5c
2 changed files with 51 additions and 1 deletions
49
pkgs/servers/nosql/cassandra/3.0.nix
Normal file
49
pkgs/servers/nosql/cassandra/3.0.nix
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{ stdenv
|
||||||
|
, fetchurl
|
||||||
|
, jre
|
||||||
|
, python
|
||||||
|
, makeWrapper
|
||||||
|
, gawk
|
||||||
|
, bash
|
||||||
|
, getopt
|
||||||
|
, procps
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
version = "3.0.7";
|
||||||
|
sha256 = "0g4nf9zw3by8api9c8np0ixianmwcldcq2mpkqqirj0zlpiii68d";
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "cassandra-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
inherit sha256;
|
||||||
|
url = "mirror://apache/cassandra/${version}/apache-${name}-bin.tar.gz";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir $out
|
||||||
|
mv * $out
|
||||||
|
|
||||||
|
for cmd in cassandra nodetool sstableloader sstableupgrade
|
||||||
|
do wrapProgram $out/bin/$cmd \
|
||||||
|
--set JAVA_HOME ${jre} \
|
||||||
|
--prefix PATH : ${stdenv.lib.makeBinPath [ bash getopt gawk procps ]}
|
||||||
|
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 = platforms.all;
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ nckx rushmorem ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -9849,7 +9849,8 @@ in
|
||||||
cassandra_1_2 = callPackage ../servers/nosql/cassandra/1.2.nix { };
|
cassandra_1_2 = callPackage ../servers/nosql/cassandra/1.2.nix { };
|
||||||
cassandra_2_0 = callPackage ../servers/nosql/cassandra/2.0.nix { };
|
cassandra_2_0 = callPackage ../servers/nosql/cassandra/2.0.nix { };
|
||||||
cassandra_2_1 = callPackage ../servers/nosql/cassandra/2.1.nix { };
|
cassandra_2_1 = callPackage ../servers/nosql/cassandra/2.1.nix { };
|
||||||
cassandra = self.cassandra_2_1;
|
cassandra_3_0 = callPackage ../servers/nosql/cassandra/3.0.nix { };
|
||||||
|
cassandra = self.cassandra_3_0;
|
||||||
|
|
||||||
apache-jena = callPackage ../servers/nosql/apache-jena/binary.nix {
|
apache-jena = callPackage ../servers/nosql/apache-jena/binary.nix {
|
||||||
java = jdk;
|
java = jdk;
|
||||||
|
|
Loading…
Reference in a new issue