2014-03-25 00:05:28 +04:00
|
|
|
{ stdenv, fetchurl, makeWrapper, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "seyren-${version}";
|
2014-09-17 20:33:26 +04:00
|
|
|
version = "1.1.0";
|
2014-03-25 00:05:28 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/scobal/seyren/releases/download/${version}/seyren-${version}.jar";
|
2014-09-17 20:33:26 +04:00
|
|
|
sha256 = "10m64zdci4swlvivii1jnmrwfi461af3xvn0xvwvy7i8kyb56vrr";
|
2014-03-25 00:05:28 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = ["installPhase"];
|
|
|
|
|
2014-11-28 20:40:19 +03:00
|
|
|
buildInputs = [ makeWrapper jre ];
|
2014-03-25 00:05:28 +04:00
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 16:56:10 +04:00
|
|
|
mkdir -p "$out"/bin
|
2014-03-25 00:05:28 +04:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|