mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
27 lines
668 B
Nix
27 lines
668 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ctop";
|
|
version = "0.7.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bcicen";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0mm1gapnz67mwc346jr530xwpiajq1b2f295s8gz5nrb2a23mqln";
|
|
};
|
|
|
|
vendorSha256 = "0a5rwnf251jbp7jz2ln8z9hqp0112c6kx0y09nncvlcki35qq9sh";
|
|
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|