mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 20:21:14 +00:00
New packages: bosun and scollector
This commit is contained in:
parent
764cca613d
commit
bc8fd69fe8
35
pkgs/servers/monitoring/bosun/default.nix
Normal file
35
pkgs/servers/monitoring/bosun/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ stdenv, fetchgit, fetchurl, go }:
|
||||
let
|
||||
go-fs = fetchgit {
|
||||
url = git://github.com/rakyll/statik.git;
|
||||
rev = "f19d7c21cd036701d42ec176b13e0946cc9591b0";
|
||||
sha256 = "0vaa8xzkmj1dgiayg7ccrniapz4f4rhsizx2hybyc5rgmalfj9ac";
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "bosun-20141114233454";
|
||||
src = fetchurl {
|
||||
url = https://github.com/bosun-monitor/bosun/archive/20141114233453.tar.gz;
|
||||
sha256 = "0sd4gqfclasdw3z5j67lh2i7gyxyshgakpi9bj0mb3jz3lvcz4wb";
|
||||
};
|
||||
buildInputs = [ go ];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p src/github.com/bosun-monitor
|
||||
mv bosun-20141114233453 src/github.com/bosun-monitor/bosun
|
||||
|
||||
mkdir -p src/github.com/rakyll
|
||||
ln -s ${go-fs} src/github.com/rakyll/statik
|
||||
|
||||
export GOPATH=$PWD
|
||||
go build -v -o bosun src/github.com/bosun-monitor/bosun/main.go
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bosun $out/bin
|
||||
'';
|
||||
|
||||
}
|
27
pkgs/servers/monitoring/bosun/scollector.nix
Normal file
27
pkgs/servers/monitoring/bosun/scollector.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ stdenv, fetchgit, fetchurl, go }:
|
||||
let
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "scollector-20141119233025";
|
||||
src = fetchurl {
|
||||
url = https://github.com/bosun-monitor/scollector/archive/20141119233025.tar.gz;
|
||||
sha256 = "13f7hg4mswcdl76ksx8ds3297rslsswb1hq327b3xm1wyr42k6wa";
|
||||
};
|
||||
buildInputs = [ go ];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p src/github.com/bosun-monitor
|
||||
mv scollector-20141119233025 src/github.com/bosun-monitor/scollector
|
||||
|
||||
export GOPATH=$PWD
|
||||
go build -v -o scollector src/github.com/bosun-monitor/scollector/main.go
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp scollector $out/bin
|
||||
'';
|
||||
|
||||
}
|
|
@ -7495,6 +7495,9 @@ let
|
|||
|
||||
bird = callPackage ../servers/bird { };
|
||||
|
||||
bosun = callPackage ../servers/monitoring/bosun {};
|
||||
scollector = callPackage ../servers/monitoring/bosun/scollector.nix {};
|
||||
|
||||
couchdb = callPackage ../servers/http/couchdb {
|
||||
spidermonkey = spidermonkey_185;
|
||||
python = python27;
|
||||
|
|
Loading…
Reference in a new issue