Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 buildGoModule,
6}:
7
8buildGoModule {
9 pname = "bosun";
10 version = "unstable-2021-05-13";
11
12 src = fetchFromGitHub {
13 owner = "bosun-monitor";
14 repo = "bosun";
15 rev = "e25bc3e69a1fb2e29d28f13a78ffa71cc0b8cc87";
16 hash = "sha256-YL1RqoryHRWKyUwO9NE8z/gsE195D+vFWR8YpZH+gbw=";
17 };
18
19 vendorHash = "sha256-5mVI5cyuIB+6KHlTpDxSNGU7yBsGQC4IA+iDgvVFVZM=";
20
21 subPackages = [
22 "cmd/bosun"
23 "cmd/scollector"
24 ];
25
26 ldflags = [
27 "-s"
28 "-w"
29 ];
30
31 meta = with lib; {
32 description = "Time Series Alerting Framework";
33 license = licenses.mit;
34 homepage = "https://bosun.org";
35 maintainers = with maintainers; [ offline ];
36 broken = stdenv.hostPlatform.isDarwin;
37 };
38}