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