3 , doCheck ? !stdenv.isDarwin # Can't start localhost test server in MacOS sandbox.
11 src = fetchFromGitHub {
12 owner = "redpanda-data";
15 sha256 = "sha256-gkJlqyPDsWaXcbOGB7m70YuHY44xLNymf9laK30yr1k=";
17 server = callPackage ./server.nix { inherit src version; };
20 pname = "redpanda-rpk";
21 inherit doCheck src version;
22 modRoot = "./src/go/rpk";
24 vendorHash = "sha256-B//qmqxS3g9u2yir8Z3iV2fjQ4XXPAjFujeOZjdt8PE=";
27 ''-X "github.com/redpanda-data/redpanda/src/go/rpk/pkg/cli/cmd/version.version=${version}"''
28 ''-X "github.com/redpanda-data/redpanda/src/go/rpk/pkg/cli/cmd/version.rev=v${version}"''
29 ''-X "github.com/redpanda-data/redpanda/src/go/rpk/pkg/cli/cmd/container/common.tag=v${version}"''
32 nativeBuildInputs = [ installShellFiles ];
35 for shell in bash fish zsh; do
36 $out/bin/rpk generate shell-completion $shell > rpk.$shell
37 installShellCompletion rpk.$shell
46 description = "Redpanda client";
47 homepage = "https://redpanda.com/";
48 license = licenses.bsl11;
49 maintainers = with maintainers; [ avakhrenev happysalada ];
50 platforms = platforms.all;