depot/pkgs/by-name/ki/kitex/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

42 lines
940 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
, testers
, kitex
}:
buildGoModule rec {
pname = "kitex";
version = "0.11.3";
src = fetchFromGitHub {
owner = "cloudwego";
repo = "kitex";
rev = "v${version}";
hash = "sha256-FjFhbkEMxuBUVfytPk27mrBaAlGXZ9RPWeBy+m0bPV8=";
};
vendorHash = "sha256-e98x8lSwO/u8lFbqDmbVNjVG57Y93/P0ls2UUgRvkH0=";
subPackages = [ "tool/cmd/kitex" ];
ldflags = [ "-s" "-w" ];
postInstall = ''
ln -s $out/bin/kitex $out/bin/protoc-gen-kitex
ln -s $out/bin/kitex $out/bin/thrift-gen-kitex
'';
passthru.tests.version = testers.testVersion {
package = kitex;
version = "v${version}";
};
meta = with lib; {
description = "A high-performance and strong-extensibility Golang RPC framework";
homepage = "https://github.com/cloudwego/kitex";
license = licenses.asl20;
maintainers = with maintainers; [ aaronjheng ];
mainProgram = "kitex";
};
}