mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
06c6d4696d
Also, in case of collectd, the -lgcc_s shouldn't be needed anymore, as the library is in ${glibc}/lib/ now, which is practically always on RPATH. In case of seyren it was some stdenv change uncovering the mistake of putting src into buildInputs.
28 lines
749 B
Nix
28 lines
749 B
Nix
{ stdenv, fetchurl, makeWrapper, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "seyren-${version}";
|
|
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;
|
|
};
|
|
}
|