mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
25 lines
652 B
Nix
25 lines
652 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ctop";
|
|
version = "0.7.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bcicen";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-tojSzgpoGQg6MwV/MVpQpCA5w6bZO+9IOvfkw0Ydr6c=";
|
|
};
|
|
|
|
vendorHash = "sha256-UAja7XuoLqJFNcK1PgHGcuf/HbvSrWyRvW2D3T7Hg0g=";
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.build=v${version}" ];
|
|
|
|
meta = with lib; {
|
|
description = "Top-like interface for container metrics";
|
|
homepage = "https://ctop.sh/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ apeyroux ];
|
|
mainProgram = "ctop";
|
|
};
|
|
}
|