Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "ctop";
9 version = "0.7.7";
10
11 src = fetchFromGitHub {
12 owner = "bcicen";
13 repo = "ctop";
14 rev = "v${version}";
15 sha256 = "sha256-tojSzgpoGQg6MwV/MVpQpCA5w6bZO+9IOvfkw0Ydr6c=";
16 };
17
18 vendorHash = "sha256-UAja7XuoLqJFNcK1PgHGcuf/HbvSrWyRvW2D3T7Hg0g=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X main.version=${version}"
24 "-X main.build=v${version}"
25 ];
26
27 meta = with lib; {
28 description = "Top-like interface for container metrics";
29 homepage = "https://ctop.sh/";
30 license = licenses.mit;
31 maintainers = with maintainers; [ apeyroux ];
32 mainProgram = "ctop";
33 };
34}