Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed May 10, 2018
1 parent 1d9330d commit ee2c9bf
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
44 changes: 44 additions & 0 deletions pkgs/servers/monitoring/sensu/2.0.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";
}
5 changes: 5 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -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 {
Expand Down

0 comments on commit ee2c9bf

Please sign in to comment.