2022-12-02 08:20:57 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, buildGoModule }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
buildGoModule {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "bosun";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "unstable-2021-05-13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bosun-monitor";
|
|
|
|
repo = "bosun";
|
2022-12-02 08:20:57 +00:00
|
|
|
rev = "e25bc3e69a1fb2e29d28f13a78ffa71cc0b8cc87";
|
|
|
|
hash = "sha256-YL1RqoryHRWKyUwO9NE8z/gsE195D+vFWR8YpZH+gbw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
vendorHash = "sha256-5mVI5cyuIB+6KHlTpDxSNGU7yBsGQC4IA+iDgvVFVZM=";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
subPackages = [ "cmd/bosun" "cmd/scollector" ];
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Time Series Alerting Framework";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://bosun.org";
|
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
platforms = platforms.unix;
|
2022-12-02 08:20:57 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|