2023-12-16 02:48:39 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "plumber";
|
2024-09-15 01:43:26 +00:00
|
|
|
version = "2.7.1";
|
2023-12-16 02:48:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "streamdal";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-15 01:43:26 +00:00
|
|
|
hash = "sha256-L8vpaqt9yCIP3TLPSNUrOC6hXc71mzl4lqiaoNS6zls=";
|
2023-12-16 02:48:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
# connection tests create a config file in user home directory
|
|
|
|
preCheck = ''
|
|
|
|
export HOME="$(mktemp -d)"
|
|
|
|
'';
|
|
|
|
|
2024-02-18 04:20:00 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2023-12-16 02:48:39 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/streamdal/plumber/options.VERSION=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI devtool for interacting with data in message systems like Kafka, RabbitMQ, GCP PubSub and more";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "plumber";
|
2023-12-16 02:48:39 +00:00
|
|
|
homepage = "https://github.com/streamdal/plumber";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ svrana ];
|
|
|
|
};
|
|
|
|
}
|