nixpkgs-suyu/pkgs/tools/misc/topicctl/default.nix

32 lines
745 B
Nix
Raw Normal View History

2021-11-10 14:54:04 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "topicctl";
2022-02-13 11:40:43 +01:00
version = "1.3.1";
2021-11-10 14:54:04 +01:00
src = fetchFromGitHub {
owner = "segmentio";
repo = "topicctl";
rev = "v${version}";
2022-02-13 11:40:43 +01:00
sha256 = "sha256-hbsVk82iTZGVvypZHhUk/By0sSQxmZQBog2/3qKE94s=";
2021-11-10 14:54:04 +01:00
};
2022-02-13 11:40:43 +01:00
vendorSha256 = "sha256-i1ir/aT/jaK//rmH9k/eK4LIRh0OmEytc0mGO7IrpqI=";
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 ];
};
}