@@ -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+