mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
25 lines
645 B
Nix
25 lines
645 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ctop";
|
|
version = "0.7.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bcicen";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0y72l65xgfqrgghzbm1zcy776l5m31z0gn6vfr689zyi3k3f4kh8";
|
|
};
|
|
|
|
modSha256 = "0wxv6yzlgki7047qszx9p9xpph95bg097jkgaa0b3wbpx8vg7qml";
|
|
|
|
buildFlagsArray = [ "-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 marsam ];
|
|
};
|
|
}
|