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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
743 B
Nix
Raw Normal View History

2021-11-10 13:54:04 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "topicctl";
2023-04-20 20:16:42 +00:00
version = "1.9.1";
2021-11-10 13:54:04 +00:00
src = fetchFromGitHub {
owner = "segmentio";
repo = "topicctl";
rev = "v${version}";
2023-04-20 20:16:42 +00:00
sha256 = "sha256-R6Dw6/pgXUmQrq8iD93h64VVEvB4TBEcGb2Rbg6kTp0=";
2021-11-10 13:54:04 +00:00
};
2023-04-20 20:16:42 +00:00
vendorHash = "sha256-UJ7U9CfQHKgK7wfb8zqLZ7na4OBBZBYiGayII3RTaiQ=";
2021-11-10 13:54:04 +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 ];
};
}