mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
43 lines
940 B
Nix
43 lines
940 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, testers
|
|
, kitex
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "kitex";
|
|
version = "0.10.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudwego";
|
|
repo = "kitex";
|
|
rev = "v${version}";
|
|
hash = "sha256-TvWFbjmKIvX26KV3JZRXcd7jF823tdTr5pCP/N66nIc=";
|
|
};
|
|
|
|
vendorHash = "sha256-nscMcJGFZ1YPPynTV+Mp8tXndtlIcszDZm36zMbNBYs=";
|
|
|
|
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";
|
|
};
|
|
}
|