at 22.05-pre 40 lines 1.1 kB view raw
1{ lib 2, stdenv 3, cmake 4, fetchFromGitHub 5}: 6 7stdenv.mkDerivation rec { 8 pname = "grpc-tools"; 9 version = "1.11.2"; 10 11 src = fetchFromGitHub { 12 owner = "grpc"; 13 repo = "grpc-node"; 14 rev = "grpc-tools@${version}"; 15 sha256 = "00432y19pjcimwachjcqpzra21vzmlqchhhlqxnk98bfh25kxdcb"; 16 fetchSubmodules = true; 17 }; 18 19 sourceRoot = "source/packages/grpc-tools"; 20 21 nativeBuildInputs = [ cmake ]; 22 23 installPhase = '' 24 install -Dm755 -t $out/bin grpc_node_plugin 25 install -Dm755 -t $out/bin deps/protobuf/protoc 26 ''; 27 28 meta = with lib; { 29 description = "Distribution of protoc and the gRPC Node protoc plugin for ease of installation with npm"; 30 longDescription = '' 31 This package distributes the Protocol Buffers compiler protoc along with 32 the plugin for generating client and service objects for use with the Node 33 gRPC libraries. 34 ''; 35 homepage = "https://github.com/grpc/grpc-node/tree/master/packages/grpc-tools"; 36 license = licenses.asl20; 37 platforms = platforms.all; 38 maintainers = [ maintainers.nzhang-zh ]; 39 }; 40}