Skip to content
Permalink
Browse files

wip

  • Loading branch information
peterhoeg committed May 10, 2018
1 parent 1d9330d commit ee2c9bf1e2cb3399b67b603ed615c2c85958eae8
Showing with 49 additions and 0 deletions.
  1. +44 −0 pkgs/servers/monitoring/sensu/2.0.nix
  2. +5 −0 pkgs/top-level/all-packages.nix
@@ -0,0 +1,44 @@
{ stdenv, lib, buildGoPackage, fetchFromGitHub, makeWrapper
, nodejs }:

let
generic = product: buildGoPackage rec {
name = "sensu-${version}";
version = "2.0.0-beta.1-2";

goPackagePath = "github.com/sensu/sensu-go";

src = fetchFromGitHub {
owner = "sensu";
repo = "sensu-go";
rev = "${version}";
sha256 = "1c1kdrbq1m06as5i9jhzr3vxavi82w7jgph7glaarf5k1znrp8p5";
};

# goDeps = ./deps.nix;

buildInputs = [ makeWrapper ] ++ lib.optional (product == "backend") nodejs;

makeFlags = [
"deps"
"build_${product}"
];

preBuild = ''
export PATH=$GOPATH/bin:$PATH
'';

meta = with lib; {
description = "A monitoring framework that aims to be simple, malleable, and scalable";
homepage = https://sensuapp.org/;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.unix;
};
};

in {
sensu-agent = generic "agent";
sensu-backend = {}; #generic "backend";
sensu-cli = generic "cli";
}
@@ -12905,6 +12905,11 @@ with pkgs;

sensu = callPackage ../servers/monitoring/sensu { };

inherit (callPackages ../servers/monitoring/sensu/2.0.nix {})
sensu-agent
sensu-backend
sensu-cli;

uchiwa = callPackage ../servers/monitoring/uchiwa { };

shishi = callPackage ../servers/shishi {

0 comments on commit ee2c9bf

Please sign in to comment.
You can’t perform that action at this time.