nixpkgs/pkgs/servers/monitoring/bosun/default.nix

36 lines
856 B
Nix
Raw Normal View History

2014-12-05 12:36:48 +01:00
{ stdenv, fetchurl, go }:
stdenv.mkDerivation rec {
2014-11-20 16:45:05 +01:00
name = "bosun-${version}";
2014-12-05 12:36:48 +01:00
version = "20141204222654";
2014-11-20 13:14:48 +01:00
src = fetchurl {
2014-11-20 16:45:05 +01:00
url = "https://github.com/bosun-monitor/bosun/archive/${version}.tar.gz";
2014-12-05 12:36:48 +01:00
sha256 = "1jwhfwf24zhncrirna3q1vhap4f955bqx3sws3ryk5gp1w99l36n";
2014-11-20 13:14:48 +01:00
};
buildInputs = [ go ];
sourceRoot = ".";
buildPhase = ''
2014-12-05 12:36:48 +01:00
mkdir -p src
mv bosun-${version} src/bosun.org
2014-11-20 13:14:48 +01:00
export GOPATH=$PWD
2014-12-05 12:36:48 +01:00
go build -v -o bosun src/bosun.org/cmd/bosun/main.go
2014-11-20 13:14:48 +01:00
'';
installPhase = ''
mkdir -p $out/bin
cp bosun $out/bin
'';
meta = with stdenv.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 = ["x86_64-linux"];
};
2014-11-20 13:14:48 +01:00
}