35 lines
854 B
Nix
35 lines
854 B
Nix
{ stdenv, fetchurl, go }:
|
|
stdenv.mkDerivation rec {
|
|
name = "bosun-${version}";
|
|
version = "20141215200935";
|
|
src = fetchurl {
|
|
url = "https://github.com/bosun-monitor/bosun/archive/${version}.tar.gz";
|
|
sha256 = "1py4plx5wi4mp05g4c1aa1wa8ny538kp2p4fzhalz33zm2qxbbx9";
|
|
};
|
|
buildInputs = [ go ];
|
|
|
|
sourceRoot = ".";
|
|
|
|
buildPhase = ''
|
|
mkdir -p src
|
|
mv bosun-${version} src/bosun.org
|
|
|
|
export GOPATH=$PWD
|
|
go build -v -o bosun src/bosun.org/cmd/bosun/main.go
|
|
'';
|
|
|
|
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 = platforms.unix;
|
|
};
|
|
}
|