plumber: init at 2.5.2

Closes #274259
This commit is contained in:
Shaw Vrana 2023-12-15 18:48:39 -08:00 committed by a-n-n-a-l-e-e
parent 407a0285c9
commit 77e1de249c

View File

@ -0,0 +1,35 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "plumber";
version = "2.5.2";
src = fetchFromGitHub {
owner = "streamdal";
repo = pname;
rev = "v${version}";
hash = "sha256-ftXLipJQjRdOSNO56rIRfAKKU0kHtAK85hgcT3nYOKA=";
};
vendorHash = null;
# connection tests create a config file in user home directory
preCheck = ''
export HOME="$(mktemp -d)"
'';
ldflags = [
"-s"
"-w"
"-X github.com/streamdal/plumber/options.VERSION=${version}"
# remove once module in go.mod is renamed to github.com/batchcorp/streamdal
"-X github.com/batchcorp/plumber/options.VERSION=${version}"
];
meta = with lib; {
description = "A CLI devtool for interacting with data in message systems like Kafka, RabbitMQ, GCP PubSub and more";
homepage = "https://github.com/streamdal/plumber";
license = licenses.mit;
maintainers = with maintainers; [ svrana ];
};
}