{ungoogled-,}chromium,chromedriver: 130.0.6723.58 -> 130.0.6723.69 (#351519)
[NixPkgs.git] / pkgs / servers / monitoring / cadvisor / default.nix
blob487741866464f39e33fe628bb2c38c22b3e3d349
1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
3 buildGoModule rec {
4   pname = "cadvisor";
5   version = "0.49.1";
7   src = fetchFromGitHub {
8     owner = "google";
9     repo = "cadvisor";
10     rev = "v${version}";
11     hash = "sha256-Hr9L9cewJN1ibh+6L0XhxxNAH4U8TrK+j7YBjS6FzZc=";
12   };
14   modRoot = "./cmd";
16   vendorHash = "sha256-9h+W+zuwxlpkBaCpk1otrBrwfyitfGLViOcZRpKB3uU=";
18   ldflags = [ "-s" "-w" "-X github.com/google/cadvisor/version.Version=${version}" ];
20   postInstall = ''
21     mv $out/bin/{cmd,cadvisor}
22     rm $out/bin/example
23   '';
25   passthru.tests = { inherit (nixosTests) cadvisor; };
27   meta = with lib; {
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;
34   };