2021-12-06 16:07:01 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "topicctl";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.16.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "segmentio";
|
|
|
|
repo = "topicctl";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-Gx/ld651Se2mLlUG/CkHawfVBN2BsxV8w6vrnKFLHuE=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
vendorHash = "sha256-+mnnvdna1g6JE29weOJZmdO3jFp2a75dV9wK2XcWJ9s=";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-X main.BuildVersion=${version}"
|
|
|
|
"-X main.BuildCommitSha=unknown"
|
|
|
|
"-X main.BuildDate=unknown"
|
|
|
|
];
|
|
|
|
|
|
|
|
# needs a kafka server
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool for easy, declarative management of Kafka topics";
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ eskytthe srhb ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "topicctl";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|