2014-08-23 10:39:15 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "riemann-${version}";
|
2015-05-24 00:51:00 +00:00
|
|
|
version = "0.2.9";
|
2014-08-23 10:39:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://aphyr.com/riemann/${name}.tar.bz2";
|
2015-05-24 00:51:00 +00:00
|
|
|
sha256 = "10zz92sg9ak8g7xsfc05p4kic6hzwj7nqpkjgsd8f7f3slvfjqw3";
|
2014-08-23 10:39:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-12-11 22:32:39 +00:00
|
|
|
sed -i 's#lib/riemann.jar#$out/share/java/riemann.jar#' bin/riemann
|
|
|
|
|
|
|
|
mkdir -p $out/share/java $out/bin $out/etc
|
2014-08-23 10:39:15 +00:00
|
|
|
mv lib/riemann.jar $out/share/java/
|
2016-12-11 22:32:39 +00:00
|
|
|
mv bin/riemann $out/bin/
|
|
|
|
mv etc/riemann.config $out/etc/
|
2014-08-23 10:39:15 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-11-11 13:20:43 +00:00
|
|
|
homepage = http://riemann.io/;
|
|
|
|
description = "A network monitoring system";
|
2014-08-23 10:39:15 +00:00
|
|
|
license = licenses.epl10;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.rickynils ];
|
|
|
|
};
|
|
|
|
}
|