git.iko.soy/typeable/nixpkgs
on master help sign in
protoc-gen-entgrpc: init 0.2.0
commitf764163d458b14a4b94bdeac1d7eadf991887f94 authorsuperherointj <5861043+superherointj@users.noreply.github.com> dateWed 27 Apr 2022, 16:39 (5 years ago) parent6ee9a9d
2 files changed+30
pkgs/development/tools/protoc-gen-entgrpc/default.nix+28 pkgs/top-level/all-packages.nix+2
pkgs/development/tools/protoc-gen-entgrpc/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ lib, buildGoModule, fetchFromGitHub }:
2+
3+buildGoModule rec {
4+ pname = "protoc-gen-entgrpc";
5+ version = "0.2.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "ent";
9+ repo = "contrib";
10+ rev = "v${version}";
11+ sha256 = "sha256-cpk8yRDBsupI277NWYFaLCvi3ltQDLgCrcpJ/FUVi9o=";
12+ };
13+
14+ vendorSha256 = "sha256-RwwGFBiasxMmtKMLSyAqvkozqoyzzYuslMq+HnzZUhw=";
15+
16+ subPackages = [ "entproto/cmd/protoc-gen-entgrpc" ];
17+
18+ ldflags = [ "-s" "-w" ];
19+
20+ meta = with lib; {
21+ description = "Generator of an implementation of the service interface for ent protobuff";
22+ downloadPage = "https://github.com/ent/contrib/";
23+ license = licenses.asl20;
24+ homepage = "https://entgo.io/";
25+ maintainers = with maintainers; [ superherointj ];
26+ };
27+}
28+
pkgs/top-level/all-packages.nix+2
@@ -391,6 +391,8 @@ with pkgs;
391391
392392 protoc-gen-doc = callPackage ../development/tools/protoc-gen-doc { };
393393
394+ protoc-gen-entgrpc = callPackage ../development/tools/protoc-gen-entgrpc { };
395+
394396 protoc-gen-go = callPackage ../development/tools/protoc-gen-go { };
395397
396398 protoc-gen-go-grpc = callPackage ../development/tools/protoc-gen-go-grpc { };