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
745 B
Nix
Raw Normal View History

2021-11-10 14:54:04 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "topicctl";
2022-11-13 03:58:08 +01:00
version = "1.7.0";
2021-11-10 14:54:04 +01:00
src = fetchFromGitHub {
owner = "segmentio";
repo = "topicctl";
rev = "v${version}";
2022-11-13 03:58:08 +01:00
sha256 = "sha256-eHFqczZtJWcZ4ZVOzpCUlVoCJ7wjyWNpFfiZ9MaJHOI=";
2021-11-10 14:54:04 +01:00
};
2022-11-13 03:58:08 +01:00
vendorSha256 = "sha256-50UDRf8S9Yl0zwGOrFLa5L1TmSKF4RQ/ju0tnFzs56M=";
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 ];
};
}