diff options
author | Aaron Jheng <wentworth@outlook.com> | 2024-06-12 15:20:19 +0800 |
---|---|---|
committer | Aaron Jheng <wentworth@outlook.com> | 2024-06-12 15:20:19 +0800 |
commit | 97c6f1c5e8d66a08a663b3caebcce8db513c123b (patch) | |
tree | f42b43157e6701adc3134ca04e91686347d6a964 /pkgs/by-name/ki | |
parent | d913a66f27204962d7c3f42c8bb8e8aee89785c4 (diff) |
kitex: init at 0.10.0
Diffstat (limited to 'pkgs/by-name/ki')
-rw-r--r-- | pkgs/by-name/ki/kitex/package.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/by-name/ki/kitex/package.nix b/pkgs/by-name/ki/kitex/package.nix new file mode 100644 index 0000000000000..2890eff5f882e --- /dev/null +++ b/pkgs/by-name/ki/kitex/package.nix @@ -0,0 +1,42 @@ +{ buildGoModule +, fetchFromGitHub +, lib +, testers +, kitex +}: + +buildGoModule rec { + pname = "kitex"; + version = "0.10.0"; + + src = fetchFromGitHub { + owner = "cloudwego"; + repo = "kitex"; + rev = "v${version}"; + hash = "sha256-U61n+zaTnABujDSTPcKr4zfMmPVQwxQAotBXZaOVZSo="; + }; + + vendorHash = "sha256-luZH7ynFni5J3CmLRM3jJPshs/u3zahkS1qS2phopLc="; + + 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"; + }; +} |