mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #117944 from jojosch/protoc-gen-twirp-init
This commit is contained in:
commit
4a2a8d0ea2
6 changed files with 137 additions and 0 deletions
24
pkgs/development/tools/protoc-gen-go/default.nix
Normal file
24
pkgs/development/tools/protoc-gen-go/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
27
pkgs/development/tools/protoc-gen-twirp/default.nix
Normal file
27
pkgs/development/tools/protoc-gen-twirp/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "protoc-gen-twirp";
|
||||
version = "7.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "twitchtv";
|
||||
repo = "twirp";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-GN7akAp0zzS8wVhgXlT1ceFUFKH4Sz74XQ8ofIE8T/k=";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/twitchtv/twirp";
|
||||
|
||||
subPackages = [
|
||||
"protoc-gen-twirp"
|
||||
"protoc-gen-twirp_python"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple RPC framework with protobuf service definitions";
|
||||
homepage = "https://github.com/twitchtv/twirp";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ jojosch ];
|
||||
};
|
||||
}
|
28
pkgs/development/tools/protoc-gen-twirp_php/default.nix
Normal file
28
pkgs/development/tools/protoc-gen-twirp_php/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib, buildGoModule, fetchgit }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "protoc-gen-twirp_php";
|
||||
version = "0.6.0";
|
||||
|
||||
# fetchFromGitHub currently not possible, because go.mod and go.sum are export-ignored
|
||||
src = fetchgit {
|
||||
url = "https://github.com/twirphp/twirp.git";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-WnvCdAJIMA4A+f7H61qcVbKNn23bNVOC15vMCEKc+CI=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-LIMxrWXlK7+JIRmtukdXPqfw8H991FCAOuyEf7ZLSTs=";
|
||||
|
||||
subPackages = [ "protoc-gen-twirp_php" ];
|
||||
|
||||
preBuild = ''
|
||||
go generate ./...
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "PHP port of Twitch's Twirp RPC framework";
|
||||
homepage = "https://github.com/twirphp/twirp";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jojosch ];
|
||||
};
|
||||
}
|
24
pkgs/development/tools/protoc-gen-twirp_swagger/default.nix
Normal file
24
pkgs/development/tools/protoc-gen-twirp_swagger/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule {
|
||||
pname = "protoc-gen-twirp_swagger";
|
||||
version = "unstable-2021-03-29";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "elliots";
|
||||
repo = "protoc-gen-twirp_swagger";
|
||||
rev = "f21ef47d69e37c1602a7fb26146de05c092d30b6";
|
||||
sha256 = "sha256-uHU15NbHK7SYgNS3VK21H/OqDo/JyyTZdXw3i9lsgLY=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-g0+9l83Fc0XPzsZAKjLBrjD+tv2+Fot57hcilqAhOZk=";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Swagger generator for twirp";
|
||||
homepage = "https://github.com/elliots/protoc-gen-twirp_swagger";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ jojosch ];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule {
|
||||
pname = "protoc-gen-twirp_typescript";
|
||||
version = "unstable-2021-03-29";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "larrymyers";
|
||||
repo = "protoc-gen-twirp_typescript";
|
||||
rev = "97fd63e543beb2d9f6a90ff894981affe0f2faf1";
|
||||
sha256 = "sha256-LfF/n96LwRX8aoPHzCRI/QbDmZR9yMhE5yGhFAqa8nA=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-WISWuq1neVX4xQkoamc6FznZahOQHwgkYmERJF40OFQ=";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Protobuf Plugin for Generating a Twirp Typescript Client";
|
||||
homepage = "https://github.com/larrymyers/protoc-gen-twirp_typescript";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jojosch ];
|
||||
};
|
||||
}
|
|
@ -259,6 +259,16 @@ in
|
|||
|
||||
protoc-gen-doc = callPackage ../development/tools/protoc-gen-doc {};
|
||||
|
||||
protoc-gen-go = callPackage ../development/tools/protoc-gen-go { };
|
||||
|
||||
protoc-gen-twirp = callPackage ../development/tools/protoc-gen-twirp { };
|
||||
|
||||
protoc-gen-twirp_php = callPackage ../development/tools/protoc-gen-twirp_php { };
|
||||
|
||||
protoc-gen-twirp_swagger = callPackage ../development/tools/protoc-gen-twirp_swagger { };
|
||||
|
||||
protoc-gen-twirp_typescript = callPackage ../development/tools/protoc-gen-twirp_typescript { };
|
||||
|
||||
ptags = callPackage ../development/tools/misc/ptags { };
|
||||
|
||||
ptouch-print = callPackage ../misc/ptouch-print { };
|
||||
|
|
Loading…
Reference in a new issue