1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
7 src = fetchFromGitHub {
11 hash = "sha256-Hr9L9cewJN1ibh+6L0XhxxNAH4U8TrK+j7YBjS6FzZc=";
16 vendorHash = "sha256-9h+W+zuwxlpkBaCpk1otrBrwfyitfGLViOcZRpKB3uU=";
18 ldflags = [ "-s" "-w" "-X github.com/google/cadvisor/version.Version=${version}" ];
21 mv $out/bin/{cmd,cadvisor}
25 passthru.tests = { inherit (nixosTests) cadvisor; };
28 description = "Analyzes resource usage and performance characteristics of running docker containers";
29 mainProgram = "cadvisor";
30 homepage = "https://github.com/google/cadvisor";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ offline ];
33 platforms = platforms.linux;