forked from mirrors/nixpkgs
5385a0a82a
Upstream likes to move "old" releases to an archive mirror as soon as a new one is released. This is now handled for free by mirrors.nix. (No idea why cs.utah.edu was used to begin with; it's now added to mirrors.nix. Note that it doesn't support SSL, but that applies to several others so I don't see the harm.)
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ stdenv
|
|
, fetchurl
|
|
, jre
|
|
, python
|
|
, makeWrapper
|
|
, gawk
|
|
, bash
|
|
, getopt
|
|
, procps
|
|
}:
|
|
|
|
let
|
|
|
|
version = "2.1.9";
|
|
sha256 = "10nwh7kx4k0kkfvl3sf22v3x58q37b81lkr6s6gvzkq67f6mjcvs";
|
|
|
|
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 sstablekeys sstableloader sstableupgrade
|
|
do wrapProgram $out/bin/$cmd \
|
|
--set JAVA_HOME ${jre} \
|
|
--prefix PATH : ${bash}/bin \
|
|
--prefix PATH : ${getopt}/bin \
|
|
--prefix PATH : ${gawk}/bin \
|
|
--prefix PATH : ${procps}/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 = licenses.asl20;
|
|
maintainers = with maintainers; [ nckx rushmorem ];
|
|
};
|
|
}
|