3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/monitoring/seyren/default.nix

29 lines
753 B
Nix
Raw Normal View History

{ stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
name = "seyren-${version}";
2014-09-17 17:33:26 +01:00
version = "1.1.0";
src = fetchurl {
url = "https://github.com/scobal/seyren/releases/download/${version}/seyren-${version}.jar";
2014-09-17 17:33:26 +01:00
sha256 = "10m64zdci4swlvivii1jnmrwfi461af3xvn0xvwvy7i8kyb56vrr";
};
phases = ["installPhase"];
buildInputs = [ makeWrapper jre src ];
installPhase = ''
mkdir -p "$out"/bin
makeWrapper "${jre}/bin/java" "$out"/bin/seyren --add-flags "-jar $src"
'';
meta = with stdenv.lib; {
description = "An alerting dashboard for Graphite";
homepage = https://github.com/scobal/seyren;
license = licenses.asl20;
maintainers = [ maintainers.offline ];
platforms = platforms.all;
};
}