nixpkgs-suyu/pkgs/tools/networking/grpcurl/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

29 lines
886 B
Nix

# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
# and modified to add meta and switch to fetchFromGitHub
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "grpcurl";
version = "1.0.0";
rev = "v${version}";
goPackagePath = "github.com/fullstorydev/grpcurl";
src = fetchFromGitHub {
owner = "fullstorydev";
repo = "grpcurl";
rev = "d4d048fade4abcc2f0c3fb6f3e207289401d0a10";
sha256 = "0v45lwjw2phavhi6m4ql49ri1423m249a6xcf00v9hi2x1y9dh6q";
};
goDeps = if stdenv.isDarwin
then ./deps-darwin.nix
else ./deps-linux.nix;
meta = {
description = "Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers";
homepage = https://github.com/fullstorydev/grpcurl;
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ knl ];
};
}