nixpkgs/pkgs/by-name/pl/plumber/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
849 B
Nix
Raw Normal View History

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)"
'';
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";
mainProgram = "plumber";
2023-12-16 02:48:39 +00:00
homepage = "https://github.com/streamdal/plumber";
license = licenses.mit;
maintainers = with maintainers; [ svrana ];
};
}