nixpkgs/pkgs/tools/networking/grpcui/default.nix

30 lines
757 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
2019-07-12 02:44:54 +01:00
buildGoModule rec {
pname = "grpcui";
2021-10-29 22:34:21 +01:00
version = "1.2.0";
2019-07-12 02:44:54 +01:00
src = fetchFromGitHub {
owner = "fullstorydev";
repo = pname;
rev = "v${version}";
2021-10-29 22:34:21 +01:00
sha256 = "sha256-gHzafx3nIrdLyiGlz5v6pJ8XVT+7tDN59rsdfp1V/Q0=";
2019-07-12 02:44:54 +01:00
};
2019-09-16 21:57:29 +01:00
2021-10-29 22:34:21 +01:00
vendorSha256 = "sha256-6K644KSmFEA60yMnw7GmCmycsb5x2stvc0unyV4pF9g=";
2019-07-12 02:44:54 +01:00
doCheck = false;
2020-06-27 10:20:00 +01:00
subPackages = [ "cmd/grpcui" ];
2021-08-26 07:45:51 +01:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2020-06-27 10:20:00 +01:00
meta = with lib; {
2019-07-12 02:44:54 +01:00
description = "An interactive web UI for gRPC, along the lines of postman";
homepage = "https://github.com/fullstorydev/grpcui";
license = licenses.mit;
maintainers = with maintainers; [ pradyuman ];
platforms = platforms.linux ++ platforms.darwin;
};
2020-06-27 10:20:00 +01:00
}