2021-03-20 04:20:00 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "oapi-codegen";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "1.12.2";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deepmap";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-04 12:27:35 +00:00
|
|
|
sha256 = "sha256-ZgYUCfqvKvXsgRziW0A7i4Cvntd4U2q9kKXHwBtAA9k=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
vendorSha256 = "sha256-XFXe02WTtkzIzpcVN1Vwi+7rTKWlrMWCOV/rrDBRliY=";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
# Tests use network
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Go client and server OpenAPI 3 generator";
|
|
|
|
homepage = "https://github.com/deepmap/oapi-codegen";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.j4m3s ];
|
|
|
|
};
|
|
|
|
}
|