nixpkgs/pkgs/servers/nosql/cassandra/2.0.nix

51 lines
1 KiB
Nix
Raw Normal View History

{ stdenv
, fetchurl
, jre
, python
, makeWrapper
, gawk
, bash
, getopt
}:
2014-10-01 21:10:26 +02:00
let
2015-05-19 01:42:08 +02:00
version = "2.0.15";
sha256 = "00rxmf8il9w1fmfpxfy9gbhbvgid5h8d80g3ljw25jscr00lcyh0";
in
stdenv.mkDerivation rec {
2014-10-01 21:10:26 +02:00
name = "cassandra-${version}";
src = fetchurl {
inherit sha256;
2014-10-01 21:10:26 +02:00
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
2014-10-01 21:10:26 +02:00
done
wrapProgram $out/bin/cqlsh --prefix PATH : ${python}/bin
2014-10-01 21:10:26 +02:00
'';
meta = with stdenv.lib; {
2014-11-11 14:20:43 +01:00
homepage = http://cassandra.apache.org/;
description = "A massively scalable open source NoSQL database";
platforms = with platforms; all;
license = licenses.asl20;
maintainers = with maintainers; [ nckx rushmorem ];
2014-10-01 21:10:26 +02:00
};
}