mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
bosun: Move to go-packages
This commit is contained in:
parent
e617eeea41
commit
8fe216dd3e
|
@ -30,8 +30,8 @@ in {
|
|||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.bosun.bin;
|
||||
example = literalExample "pkgs.bosun.bin";
|
||||
default = pkgs.bosun;
|
||||
example = literalExample "pkgs.bosun";
|
||||
description = ''
|
||||
bosun binary to use.
|
||||
'';
|
||||
|
|
|
@ -42,8 +42,8 @@ in {
|
|||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.scollector.bin;
|
||||
example = literalExample "pkgs.scollector.bin";
|
||||
default = pkgs.scollector;
|
||||
example = literalExample "pkgs.scollector";
|
||||
description = ''
|
||||
scollector binary to use.
|
||||
'';
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
{ lib, fetchFromGitHub, goPackages }:
|
||||
|
||||
with goPackages;
|
||||
|
||||
buildGoPackage rec {
|
||||
rev = "0.3.0";
|
||||
name = "bosun-${rev}";
|
||||
goPackagePath = "bosun.org";
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "bosun-monitor";
|
||||
repo = "bosun";
|
||||
sha256 = "05qfhm5ipdry0figa0rhmg93c45dzh2lwpia73pfxp64l1daqa3a";
|
||||
};
|
||||
subPackages = [ "cmd/bosun" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Time series alerting framework";
|
||||
longDescription = ''
|
||||
An advanced, open-source monitoring and alerting system by Stack Exchange.
|
||||
'';
|
||||
homepage = http://bosun.org;
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
{ lib, fetchFromGitHub, goPackages }:
|
||||
|
||||
with goPackages;
|
||||
|
||||
buildGoPackage rec {
|
||||
rev = "0.3.0";
|
||||
name = "scollector-${rev}";
|
||||
goPackagePath = "bosun.org";
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "bosun-monitor";
|
||||
repo = "bosun";
|
||||
sha256 = "05qfhm5ipdry0figa0rhmg93c45dzh2lwpia73pfxp64l1daqa3a";
|
||||
};
|
||||
subPackages = [ "cmd/scollector" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Collect system information and store it in OpenTSDB or Bosun";
|
||||
homepage = http://bosun.org/scollector;
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -8947,8 +8947,8 @@ let
|
|||
|
||||
bird = callPackage ../servers/bird { };
|
||||
|
||||
bosun = callPackage ../servers/monitoring/bosun { goPackages = go14Packages; };
|
||||
scollector = callPackage ../servers/monitoring/bosun/scollector.nix { goPackages = go14Packages; };
|
||||
bosun = go14Packages.bosun.bin // { outputs = [ "bin" ]; };
|
||||
scollector = bosun;
|
||||
|
||||
charybdis = callPackage ../servers/irc/charybdis {};
|
||||
|
||||
|
|
|
@ -254,6 +254,17 @@ let
|
|||
sha256 = "193adhhsqdy0kyq1l1fi8pg2n6pwyrw4h607qm78qyi26f8i7vzf";
|
||||
};
|
||||
|
||||
bosun = buildFromGitHub {
|
||||
rev = "0.3.0";
|
||||
owner = "bosun-monitor";
|
||||
repo = "bosun";
|
||||
sha256 = "05qfhm5ipdry0figa0rhmg93c45dzh2lwpia73pfxp64l1daqa3a";
|
||||
goPackagePath = "bosun.org";
|
||||
# Todo: Split these derivations if worried about size on each machine
|
||||
subPackages = [ "cmd/bosun" "cmd/scollector" ];
|
||||
disabled = !isGo14;
|
||||
};
|
||||
|
||||
bufio = buildFromGitHub {
|
||||
rev = "24e7e48f60fc2d9e99e43c07485d9fff42051e66";
|
||||
owner = "vmihailenco";
|
||||
|
|
Loading…
Reference in a new issue