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