depot/third_party/nixpkgs/pkgs/development/php-packages/grpc/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 lines
682 B
Nix

{
buildPecl,
pkg-config,
lib,
grpc,
}:
buildPecl {
pname = "grpc";
inherit (grpc) version src;
sourceRoot = "${grpc.src.name}/src/php/ext/grpc";
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 ];
doCheck = true;
meta = {
description = "High performance, open source, general RPC framework that puts mobile and HTTP/2 first";
homepage = "https://github.com/grpc/grpc/tree/master/src/php/ext/grpc";
license = lib.licenses.asl20;
maintainers = lib.teams.php.members;
};
}