Merge pull request #302624 from ElrohirGT/feat/add-protoc-go-inject-tags-package

Add protoc-go-inject-tag to nixpkgs
This commit is contained in:
Raghav Sood 2024-04-09 03:11:20 +08:00 committed by GitHub
commit fdf020573d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 0 deletions

View File

@ -5782,6 +5782,12 @@
githubId = 122112154;
name = "Edgar Lee";
};
elrohirgt = {
email = "elrohirgt@gmail.com";
github = "ElrohirGT";
githubId = 45268815;
name = "Flavio Galán";
};
elvishjerricco = {
email = "elvishjerricco@gmail.com";
matrix = "@elvishjerricco:matrix.org";

View File

@ -0,0 +1,25 @@
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "protoc-go-inject-tag";
version = "1.4.0";
src = fetchFromGitHub {
owner = "favadi";
repo = "protoc-go-inject-tag";
rev = "v${version}";
sha256 = "01jsrx83pygvjx3nzfnwvb2vn5gagl79m9i67v7cfg1lzz168spj";
};
vendorHash = "sha256-tMpcJ37yGr7i91Kwz57FmJ+u2x0CAus0+yWOR10fJLo=";
meta = with lib; {
description = "Inject custom tags to protobuf golang struct";
homepage = "https://github.com/favadi/protoc-go-inject-tag/tree/v1.4.0";
license = licenses.bsd2;
maintainers = with maintainers; [elrohirgt];
mainProgram = "protoc-go-inject-tag";
};
}