2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
buildPecl,
|
|
|
|
pkg-config,
|
|
|
|
lib,
|
|
|
|
grpc,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "grpc";
|
2024-01-02 11:29:13 +00:00
|
|
|
inherit (grpc) version src;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
sourceRoot = "${grpc.src.name}/src/php/ext/grpc";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
patches = [
|
|
|
|
./use-pkgconfig.patch # https://github.com/grpc/grpc/pull/35404
|
|
|
|
./skip-darwin-test.patch # https://github.com/grpc/grpc/pull/35403
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ grpc ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
doCheck = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "High performance, open source, general RPC framework that puts mobile and HTTP/2 first";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/grpc/grpc/tree/master/src/php/ext/grpc";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = lib.teams.php.members;
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|