nixpkgs-suyu/pkgs/servers/monitoring/riemann/default.nix
R. RyanTM 4e965c6270 riemann: 0.3.0 -> 0.3.1 (#41044)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/riemann/versions.

These checks were done:

- built on NixOS
- /nix/store/j7fjbp411mwd42cp5wynqvk1wr3vcxxi-riemann-0.3.1/bin/.riemann-wrapped passed the binary check.
- /nix/store/j7fjbp411mwd42cp5wynqvk1wr3vcxxi-riemann-0.3.1/bin/riemann passed the binary check.
- 2 of 2 passed binary check by having a zero exit code.
- 0 of 2 passed binary check by having the new version present in output.
- found 0.3.1 with grep in /nix/store/j7fjbp411mwd42cp5wynqvk1wr3vcxxi-riemann-0.3.1
- directory tree listing: https://gist.github.com/ed9907cdc302813f2c87257f6a26628e
- du listing: https://gist.github.com/b50c1c815b3cd6102e0ec8d21b9f1365
2018-05-28 14:48:02 +02:00

34 lines
960 B
Nix

{ stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
name = "riemann-${version}";
version = "0.3.1";
src = fetchurl {
url = "https://github.com/riemann/riemann/releases/download/${version}/${name}.tar.bz2";
sha256 = "0lc3qmwb33jjw2g64j8inqpr7krjmpjwfdmypdssvjy84acpkyal";
};
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 ];
};
}