nixpkgs/pkgs/development/php-packages/grpc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
679 B
Nix
Raw Normal View History

2023-07-11 20:54:07 +00:00
{ buildPecl
, pkg-config
2023-07-11 20:54:07 +00:00
, lib
, grpc
2023-07-11 20:54:07 +00:00
}:
2022-05-18 17:18:25 +00:00
buildPecl {
pname = "grpc";
inherit (grpc) version src;
2022-05-18 17:18:25 +00:00
sourceRoot = "${grpc.src.name}/src/php/ext/grpc";
2022-05-18 17:18:25 +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-05-18 17:18:25 +00:00
doCheck = true;
2022-05-18 17:18:25 +00:00
2023-07-11 20:54:07 +00:00
meta = {
2022-05-18 17:18:25 +00:00
description = "A 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";
2023-07-11 20:54:07 +00:00
license = lib.licenses.asl20;
maintainers = lib.teams.php.members;
2022-05-18 17:18:25 +00:00
};
}