nixpkgs/pkgs/servers/monitoring/seyren/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

29 lines
739 B
Nix

{ stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
pname = "seyren";
version = "1.1.0";
src = fetchurl {
url = "https://github.com/scobal/seyren/releases/download/${version}/seyren-${version}.jar";
sha256 = "10m64zdci4swlvivii1jnmrwfi461af3xvn0xvwvy7i8kyb56vrr";
};
phases = ["installPhase"];
buildInputs = [ makeWrapper jre ];
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;
};
}