2016-06-06 00:28:52 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, docker }:
|
2015-11-16 14:25:14 +00:00
|
|
|
|
2016-06-06 00:28:52 +00:00
|
|
|
buildGoPackage rec {
|
2015-11-16 14:25:14 +00:00
|
|
|
rev = "3057a2c07061c8d9ffaf77e5442ffd7512ac0133";
|
|
|
|
name = "heapster-${lib.strings.substring 0 7 rev}";
|
|
|
|
goPackagePath = "k8s.io/heapster";
|
|
|
|
subPackages = [ "./" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "kubernetes";
|
|
|
|
repo = "heapster";
|
2018-03-17 18:43:54 +00:00
|
|
|
sha256 = "1vg83207y7yigydnnhlvzs3s94vx02i56lqgs6a96c6i3mr3ydpb";
|
2015-11-16 14:25:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Compute Resource Usage Analysis and Monitoring of Container Clusters";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = https://github.com/kubernetes/heapster;
|
|
|
|
maintainers = with maintainers; [ offline ];
|
2015-11-18 10:33:50 +00:00
|
|
|
platforms = docker.meta.platforms;
|
2015-11-16 14:25:14 +00:00
|
|
|
};
|
|
|
|
}
|