nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 40 lines 860 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "plumber"; 9 version = "2.9.0"; 10 11 src = fetchFromGitHub { 12 owner = "streamdal"; 13 repo = "plumber"; 14 rev = "v${version}"; 15 hash = "sha256-0pyeCTkmS7gG51Xm4Gc62p+I5DRUA2F9tPHaZjO+/WE="; 16 }; 17 18 vendorHash = null; 19 20 # connection tests create a config file in user home directory 21 preCheck = '' 22 export HOME="$(mktemp -d)" 23 ''; 24 25 subPackages = [ "." ]; 26 27 ldflags = [ 28 "-s" 29 "-w" 30 "-X github.com/streamdal/plumber/options.VERSION=${version}" 31 ]; 32 33 meta = with lib; { 34 description = "CLI devtool for interacting with data in message systems like Kafka, RabbitMQ, GCP PubSub and more"; 35 mainProgram = "plumber"; 36 homepage = "https://github.com/streamdal/plumber"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ svrana ]; 39 }; 40}