2019-12-22 05:00:00 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2014-12-28 19:20:38 +00:00
|
|
|
|
2019-12-22 05:00:00 +00:00
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cadvisor";
|
2020-03-13 09:20:00 +00:00
|
|
|
version = "0.36.0";
|
2014-12-28 19:20:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "cadvisor";
|
2016-09-15 13:28:12 +01:00
|
|
|
rev = "v${version}";
|
2020-03-13 09:20:00 +00:00
|
|
|
sha256 = "12hk2l82i7hawzbvj6imcfwn6v8pcfv0dbjfn259yi4b0jrlx6l8";
|
2014-12-28 19:20:38 +00:00
|
|
|
};
|
|
|
|
|
2019-12-22 05:00:00 +00:00
|
|
|
goPackagePath = "github.com/google/cadvisor";
|
2014-12-28 19:20:38 +00:00
|
|
|
|
2019-12-22 05:00:00 +00:00
|
|
|
subPackages = [ "." ];
|
2014-12-28 19:20:38 +00:00
|
|
|
|
2019-12-22 05:00:00 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/google/cadvisor/version.Version=${version}" ];
|
2014-12-28 19:20:38 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-04-28 09:54:58 +01:00
|
|
|
description = "Analyzes resource usage and performance characteristics of running docker containers";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/google/cadvisor";
|
2014-12-28 19:20:38 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ offline ];
|
2017-05-07 22:41:39 +01:00
|
|
|
platforms = platforms.linux;
|
2014-12-28 19:20:38 +00:00
|
|
|
};
|
|
|
|
}
|