about summary refs log tree commit diff
path: root/pkgs/development/tools/protoc-gen-go
diff options
context:
space:
mode:
authorJohannes Schleifenbaum <johannes@js-webcoding.de>2021-03-29 16:23:06 +0200
committerJohannes Schleifenbaum <johannes@js-webcoding.de>2021-03-31 11:51:46 +0200
commit9583ac8d84ba6ee83199d022e2ee816d98cf4f60 (patch)
tree7229d6c1159fbd99fce7afd7ab6c3ea5cbc90f88 /pkgs/development/tools/protoc-gen-go
parent71423755c7a09a994a1346a68ea7c0195c3e6ed6 (diff)
protoc-gen-go: init at 1.26.0
Diffstat (limited to 'pkgs/development/tools/protoc-gen-go')
-rw-r--r--pkgs/development/tools/protoc-gen-go/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/tools/protoc-gen-go/default.nix b/pkgs/development/tools/protoc-gen-go/default.nix
new file mode 100644
index 0000000000000..9f94e3c78f318
--- /dev/null
+++ b/pkgs/development/tools/protoc-gen-go/default.nix
@@ -0,0 +1,24 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "protoc-gen-go";
+  version = "1.26.0";
+
+  src = fetchFromGitHub {
+    owner = "protocolbuffers";
+    repo = "protobuf-go";
+    rev = "v${version}";
+    sha256 = "sha256-n2LHI8DXQFFWhTPOFCegBgwi/0tFvRE226AZfRW8Bnc=";
+  };
+
+  vendorSha256 = "sha256-yb8l4ooZwqfvenlxDRg95rqiL+hmsn0weS/dPv/oD2Y=";
+
+  subPackages = [ "cmd/protoc-gen-go" ];
+
+  meta = with lib; {
+    description = "Go support for Google's protocol buffers";
+    homepage = "https://google.golang.org/protobuf";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ jojosch ];
+  };
+}