2024-06-20 14:57:18 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, testers
|
|
|
|
, kitex
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kitex";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "0.10.1";
|
2024-06-20 14:57:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloudwego";
|
|
|
|
repo = "kitex";
|
|
|
|
rev = "v${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-eiwOivulPBYEK7Pmztmb2dgUytPT0hZW5BiCpovUZWw=";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
vendorHash = "sha256-4tOi1BENGNdqo3xG7PnKbIUb/QsUFhm0wDcRYrMGC0M=";
|
2024-06-20 14:57:18 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|