depot/third_party/nixpkgs/pkgs/by-name/pl/plumber/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

36 lines
849 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "plumber";
version = "2.7.1";
src = fetchFromGitHub {
owner = "streamdal";
repo = pname;
rev = "v${version}";
hash = "sha256-L8vpaqt9yCIP3TLPSNUrOC6hXc71mzl4lqiaoNS6zls=";
};
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 ];
};
}