nixpkgs/pkgs/servers/monitoring/seyren/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

32 lines
844 B
Nix

{ lib, stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
pname = "seyren";
version = "1.5.0";
src = fetchurl {
url = "https://github.com/scobal/seyren/releases/download/${version}/seyren-${version}.jar";
sha256 = "1fixij04n8hgmaj8kw8i6vclwyd6n94x0n6ify73ynm6dfv8g37x";
};
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;
};
}