2021-03-29 14:28:07 +00:00
|
|
|
{ lib, buildGoModule, fetchgit }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "protoc-gen-twirp_php";
|
2023-08-12 11:00:24 +00:00
|
|
|
version = "0.10.0";
|
2021-03-29 14:28:07 +00:00
|
|
|
|
|
|
|
# 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}";
|
2023-08-12 11:00:24 +00:00
|
|
|
sha256 = "sha256-YMndB5DiER2Z1ARbw2cpxE1DBFCoVNWhMdsfA3X27EE=";
|
2021-03-29 14:28:07 +00:00
|
|
|
};
|
|
|
|
|
2023-08-12 11:00:24 +00:00
|
|
|
vendorHash = "sha256-Gf8thGuFAKX4pCNFJM3RbJ63vciLNcSqpOULcUOaGNw=";
|
2021-03-29 14:28:07 +00:00
|
|
|
|
|
|
|
subPackages = [ "protoc-gen-twirp_php" ];
|
|
|
|
|
2022-02-07 10:37:02 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2021-03-29 14:28:07 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|