mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
34 lines
796 B
Nix
34 lines
796 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "plumber";
|
|
version = "2.5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "streamdal";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-0uQYNOmG84kJo6fBZNv4/ua8uVzg2OWOWVFdGIcbm5U=";
|
|
};
|
|
|
|
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}"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|