47d1d9bf91
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/5pk3bc05rja1qsq11zlp7x4pz8j2wcin-riemann-0.3.0/bin/.riemann-wrapped -h` got 0 exit code - ran `/nix/store/5pk3bc05rja1qsq11zlp7x4pz8j2wcin-riemann-0.3.0/bin/.riemann-wrapped -h` and found version 0.3.0 - ran `/nix/store/5pk3bc05rja1qsq11zlp7x4pz8j2wcin-riemann-0.3.0/bin/riemann -h` got 0 exit code - ran `/nix/store/5pk3bc05rja1qsq11zlp7x4pz8j2wcin-riemann-0.3.0/bin/riemann -v` and found version 0.3.0 - ran `/nix/store/5pk3bc05rja1qsq11zlp7x4pz8j2wcin-riemann-0.3.0/bin/riemann -h` and found version 0.3.0 - found 0.3.0 with grep in /nix/store/5pk3bc05rja1qsq11zlp7x4pz8j2wcin-riemann-0.3.0 - found 0.3.0 in filename of file in /nix/store/5pk3bc05rja1qsq11zlp7x4pz8j2wcin-riemann-0.3.0 cc "@rickynils"
34 lines
960 B
Nix
34 lines
960 B
Nix
{ stdenv, fetchurl, makeWrapper, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "riemann-${version}";
|
|
version = "0.3.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/riemann/riemann/releases/download/${version}/${name}.tar.bz2";
|
|
sha256 = "151zd8nkhigphdx6g9jhmza6963qvlnki013j1g7lyqaz43qyk1c";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
installPhase = ''
|
|
substituteInPlace bin/riemann --replace '$top/lib/riemann.jar' "$out/share/java/riemann.jar"
|
|
|
|
mkdir -p $out/share/java $out/bin $out/etc
|
|
mv lib/riemann.jar $out/share/java/
|
|
mv bin/riemann $out/bin/
|
|
mv etc/riemann.config $out/etc/
|
|
|
|
wrapProgram "$out/bin/riemann" --prefix PATH : "${jre}/bin"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://riemann.io/;
|
|
description = "A network monitoring system";
|
|
license = licenses.epl10;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.rickynils ];
|
|
};
|
|
}
|