2021-11-10 14:54:04 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "topicctl";
|
2021-11-18 01:52:01 +01:00
|
|
|
version = "1.2.0";
|
2021-11-10 14:54:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "segmentio";
|
|
|
|
repo = "topicctl";
|
|
|
|
rev = "v${version}";
|
2021-11-18 01:52:01 +01:00
|
|
|
sha256 = "sha256-bCTlKhYmMe89dYuLiZ58CPpYZiXSGqbddxugsZS5/Cs=";
|
2021-11-10 14:54:04 +01:00
|
|
|
};
|
|
|
|
|
2021-11-18 01:52:01 +01:00
|
|
|
vendorSha256 = "sha256-1VRK8tmsbOuP5t5uJ1h+KPcS4K9D+y6UQKeUP2HPXrQ=";
|
2021-11-10 14:54:04 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|