nixpkgs/pkgs/servers/monitoring/seyren/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
844 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
pname = "seyren";
2020-01-17 10:47:56 +00:00
version = "1.5.0";
src = fetchurl {
url = "https://github.com/scobal/seyren/releases/download/${version}/seyren-${version}.jar";
2020-01-17 10:47:56 +00:00
sha256 = "1fixij04n8hgmaj8kw8i6vclwyd6n94x0n6ify73ynm6dfv8g37x";
};
2021-07-23 03:41:58 +00:00
dontUnpack = true;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jre ];
installPhase = ''
mkdir -p "$out"/bin
makeWrapper "${jre}/bin/java" "$out"/bin/seyren --add-flags "-jar $src"
'';
meta = with lib; {
description = "Alerting dashboard for Graphite";
mainProgram = "seyren";
homepage = "https://github.com/scobal/seyren";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.asl20;
maintainers = [ maintainers.offline ];
platforms = platforms.all;
};
}