2 , doCheck ? !stdenv.hostPlatform.isDarwin # Can't start localhost test server in MacOS sandbox.
10 src = fetchFromGitHub {
11 owner = "redpanda-data";
14 sha256 = "sha256-zGVd2jsjhVtNghiBE2BjO28A8+VLvslCBeUpD3vQjcw=";
18 pname = "redpanda-rpk";
19 inherit doCheck src version;
20 modRoot = "./src/go/rpk";
22 vendorHash = "sha256-JEbIC33J+uUzPN04EtO5XoC0MIkYRXKYNCsFsirJfhY=";
25 ''-X "github.com/redpanda-data/redpanda/src/go/rpk/pkg/cli/cmd/version.version=${version}"''
26 ''-X "github.com/redpanda-data/redpanda/src/go/rpk/pkg/cli/cmd/version.rev=v${version}"''
27 ''-X "github.com/redpanda-data/redpanda/src/go/rpk/pkg/cli/cmd/container/common.tag=v${version}"''
30 nativeBuildInputs = [ installShellFiles ];
33 for shell in bash fish zsh; do
34 $out/bin/rpk generate shell-completion $shell > rpk.$shell
35 installShellCompletion rpk.$shell
40 description = "Redpanda client";
41 homepage = "https://redpanda.com/";
42 license = licenses.bsl11;
43 maintainers = with maintainers; [ avakhrenev happysalada ];
44 platforms = platforms.all;