2016-06-06 02:28:52 +02:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, docker }:
|
2015-11-16 15:25:14 +01:00
|
|
|
|
2016-06-06 02:28:52 +02:00
|
|
|
buildGoPackage rec {
|
2015-11-16 15:25:14 +01:00
|
|
|
rev = "3057a2c07061c8d9ffaf77e5442ffd7512ac0133";
|
2021-07-25 23:53:02 +02:00
|
|
|
pname = "heapster";
|
|
|
|
version = lib.strings.substring 0 7 rev;
|
2015-11-16 15:25:14 +01:00
|
|
|
goPackagePath = "k8s.io/heapster";
|
|
|
|
subPackages = [ "./" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "kubernetes";
|
|
|
|
repo = "heapster";
|
2018-03-17 19:43:54 +01:00
|
|
|
sha256 = "1vg83207y7yigydnnhlvzs3s94vx02i56lqgs6a96c6i3mr3ydpb";
|
2015-11-16 15:25:14 +01: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;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/kubernetes/heapster";
|
2015-11-16 15:25:14 +01:00
|
|
|
maintainers = with maintainers; [ offline ];
|
2015-11-18 11:33:50 +01:00
|
|
|
platforms = docker.meta.platforms;
|
2015-11-16 15:25:14 +01:00
|
|
|
};
|
|
|
|
}
|