diff options
Diffstat (limited to 'pkgs/servers/redpanda/default.nix')
-rw-r--r-- | pkgs/servers/redpanda/default.nix | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/pkgs/servers/redpanda/default.nix b/pkgs/servers/redpanda/default.nix deleted file mode 100644 index 5202cce75b9e..000000000000 --- a/pkgs/servers/redpanda/default.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ buildGoModule -, doCheck ? !stdenv.isDarwin # Can't start localhost test server in MacOS sandbox. -, fetchFromGitHub -, installShellFiles -, lib -, stdenv -}: -let - version = "24.2.5"; - src = fetchFromGitHub { - owner = "redpanda-data"; - repo = "redpanda"; - rev = "v${version}"; - sha256 = "sha256-25ijVHEcj0AXLxC1rSbp3Xyv+SMQRRkRq+qgRJgSnAI="; - }; -in -buildGoModule rec { - pname = "redpanda-rpk"; - inherit doCheck src version; - modRoot = "./src/go/rpk"; - runVend = false; - vendorHash = "sha256-JEbIC33J+uUzPN04EtO5XoC0MIkYRXKYNCsFsirJfhY="; - - ldflags = [ - ''-X "github.com/redpanda-data/redpanda/src/go/rpk/pkg/cli/cmd/version.version=${version}"'' - ''-X "github.com/redpanda-data/redpanda/src/go/rpk/pkg/cli/cmd/version.rev=v${version}"'' - ''-X "github.com/redpanda-data/redpanda/src/go/rpk/pkg/cli/cmd/container/common.tag=v${version}"'' - ]; - - nativeBuildInputs = [ installShellFiles ]; - - postInstall = '' - for shell in bash fish zsh; do - $out/bin/rpk generate shell-completion $shell > rpk.$shell - installShellCompletion rpk.$shell - done - ''; - - meta = with lib; { - description = "Redpanda client"; - homepage = "https://redpanda.com/"; - license = licenses.bsl11; - maintainers = with maintainers; [ avakhrenev happysalada ]; - platforms = platforms.all; - mainProgram = "rpk"; - }; -} |