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