nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildGoModule,
3 fetchFromGitHub,
4 lib,
5}:
6
7buildGoModule rec {
8 pname = "grpcui";
9 version = "1.4.3";
10
11 src = fetchFromGitHub {
12 owner = "fullstorydev";
13 repo = "grpcui";
14 rev = "v${version}";
15 sha256 = "sha256-Tmema+cMPDGuX6Y8atow58GdGMj7croHyj8oiDXSEYk=";
16 };
17
18 vendorHash = "sha256-a19m+HY6SQ+06LXUDba9KRHRKNxLjzKmldJQaaI6nro=";
19
20 doCheck = false;
21
22 subPackages = [ "cmd/grpcui" ];
23
24 ldflags = [
25 "-s"
26 "-w"
27 "-X main.version=${version}"
28 ];
29
30 meta = with lib; {
31 description = "Interactive web UI for gRPC, along the lines of postman";
32 homepage = "https://github.com/fullstorydev/grpcui";
33 license = licenses.mit;
34 maintainers = with maintainers; [ pradyuman ];
35 platforms = platforms.linux ++ platforms.darwin;
36 mainProgram = "grpcui";
37 };
38}