blob: 409ae5f37562dd569340b6adaf29620617fc4799 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "cadvisor";
version = "unstable-2023-10-22";
src = fetchFromGitHub {
owner = "google";
repo = "cadvisor";
rev = "bf2a7fee4170e418e7ac774af7679257fe26dc69";
hash = "sha256-wf5TtUmBC8ikpaUp3KLs8rBMunFPevNYYoactudHMsU=";
};
modRoot = "./cmd";
vendorHash = "sha256-LEtiJC3L6Q7MZH2gvpR9y2Zn9vig+9mWlRyVuKY3rsA=";
ldflags = [ "-s" "-w" "-X github.com/google/cadvisor/version.Version=${version}" ];
postInstall = ''
mv $out/bin/{cmd,cadvisor}
rm $out/bin/example
'';
meta = with lib; {
description = "Analyzes resource usage and performance characteristics of running docker containers";
homepage = "https://github.com/google/cadvisor";
license = licenses.asl20;
maintainers = with maintainers; [ offline ];
platforms = platforms.linux;
};
}
|