Merge pull request #110659 from nzhang-zh/add-grpc-tools

grpc-tools: init at 1.10.0

authored by

Mario Rodas and committed by
GitHub
6a5bcdfc 8ef056ba

+42
+40
pkgs/development/tools/misc/grpc-tools/default.nix
··· 1 + { lib 2 + , stdenv 3 + , cmake 4 + , fetchFromGitHub 5 + }: 6 + 7 + stdenv.mkDerivation rec { 8 + pname = "grpc-tools"; 9 + version = "1.10.0"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "grpc"; 13 + repo = "grpc-node"; 14 + rev = "3a094f01711942f79abd8a536c45a91b574d626f"; # version 1.10.0 was not tagged 15 + sha256 = "1a7l91kxc3g7mqfqvhc3nb7zy0n21ifs5ck0qqg09qh3f44q04xm"; 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 + }
+2
pkgs/top-level/all-packages.nix
··· 4789 4789 4790 4790 grpcui = callPackage ../tools/networking/grpcui { }; 4791 4791 4792 + grpc-tools = callPackage ../development/tools/misc/grpc-tools { }; 4793 + 4792 4794 grub = pkgsi686Linux.callPackage ../tools/misc/grub ({ 4793 4795 stdenv = overrideCC stdenv buildPackages.pkgsi686Linux.gcc6; 4794 4796 } // (config.grub or {}));