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

28 lines
752 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
2019-07-12 03:44:54 +02:00
buildGoModule rec {
pname = "grpcui";
2020-06-26 12:20:47 +02:00
version = "1.0.0";
2019-07-12 03:44:54 +02:00
src = fetchFromGitHub {
owner = "fullstorydev";
repo = pname;
rev = "v${version}";
2020-06-26 12:20:47 +02:00
sha256 = "0b6rc294v8jagk79hcjbaldfi7y7idx8bknsbdi3djym5rspdg6s";
2019-07-12 03:44:54 +02:00
};
2019-09-16 22:57:29 +02:00
2020-06-26 12:20:47 +02:00
vendorSha256 = "0wih9xvpgqqd82v1pxy5rslrsd6wsl0ys1bi1mf373dnfq5vh5a9";
2019-07-12 03:44:54 +02:00
2020-06-27 11:20:00 +02:00
subPackages = [ "cmd/grpcui" ];
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
meta = with lib; {
2019-07-12 03:44:54 +02: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 11:20:00 +02:00
}