1 { lib, stdenv, fetchurl, makeWrapper, jre }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/riemann/riemann/releases/download/${version}/${pname}-${version}.tar.bz2";
9 sha256 = "sha256-B09QBOVRHxwPR7oBZaurXMglx5cR/oN7eEKVhs3ZUyc=";
12 nativeBuildInputs = [ makeWrapper ];
15 substituteInPlace bin/riemann --replace '$top/lib/riemann.jar' "$out/share/java/riemann.jar"
17 mkdir -p $out/share/java $out/bin $out/etc
18 mv lib/riemann.jar $out/share/java/
19 mv bin/riemann $out/bin/
20 mv etc/riemann.config $out/etc/
22 wrapProgram "$out/bin/riemann" --prefix PATH : "${jre}/bin"
26 homepage = "http://riemann.io/";
27 description = "A network monitoring system";
28 mainProgram = "riemann";
29 sourceProvenance = with sourceTypes; [ binaryBytecode ];
30 license = licenses.epl10;
31 platforms = platforms.all;