depot/third_party/nixpkgs/pkgs/by-name/pl/plumber/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

36 lines
849 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "plumber";
version = "2.7.0";
src = fetchFromGitHub {
owner = "streamdal";
repo = pname;
rev = "v${version}";
hash = "sha256-20rc9TLiCkt9k/Gtr5aoheGiiqOp1eURSqg4p1jTnkE=";
};
vendorHash = null;
# connection tests create a config file in user home directory
preCheck = ''
export HOME="$(mktemp -d)"
'';
subPackages = [ "." ];
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";
mainProgram = "plumber";
homepage = "https://github.com/streamdal/plumber";
license = licenses.mit;
maintainers = with maintainers; [ svrana ];
};
}