8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
15 rev = "grpc-tools@${version}";
16 hash = "sha256-708lBIGW5+vvSTrZHl/kc+ck7JKNXElrghIGDrMSyx8=";
17 fetchSubmodules = true;
20 sourceRoot = "${src.name}/packages/grpc-tools";
22 nativeBuildInputs = [ cmake ];
25 install -Dm755 -t $out/bin grpc_node_plugin
26 install -Dm755 -t $out/bin deps/protobuf/protoc
29 passthru.updateScript = gitUpdater {
30 url = "https://github.com/grpc/grpc-node.git";
31 rev-prefix = "grpc-tools@";
35 description = "Distribution of protoc and the gRPC Node protoc plugin for ease of installation with npm";
37 This package distributes the Protocol Buffers compiler protoc along with
38 the plugin for generating client and service objects for use with the Node
41 homepage = "https://github.com/grpc/grpc-node/tree/master/packages/grpc-tools";
42 license = licenses.asl20;
43 platforms = platforms.all;
44 maintainers = [ maintainers.nzhang-zh ];