2021-04-05 15:23:46 +00:00
|
|
|
{ lib, buildGoModule, fetchgit }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "protoc-gen-twirp_php";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.10.0";
|
2021-04-05 15:23:46 +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-22 20:05:09 +00:00
|
|
|
sha256 = "sha256-YMndB5DiER2Z1ARbw2cpxE1DBFCoVNWhMdsfA3X27EE=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
vendorHash = "sha256-Gf8thGuFAKX4pCNFJM3RbJ63vciLNcSqpOULcUOaGNw=";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
subPackages = [ "protoc-gen-twirp_php" ];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +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 ];
|
|
|
|
};
|
|
|
|
}
|