1
0
Fork 1
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:
William A. Kennington III 2015-09-04 21:11:08 -07:00
parent e617eeea41
commit 8fe216dd3e
6 changed files with 17 additions and 55 deletions

View file

@ -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.
'';

View file

@ -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.
'';

View file

@ -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;
};
}

View file

@ -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;
};
}

View file

@ -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 {};

View file

@ -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";