2021-03-26 00:00:38 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "oapi-codegen";
|
2021-11-03 18:12:44 +01:00
|
|
|
version = "1.8.3";
|
2021-03-26 00:00:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deepmap";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-03 18:12:44 +01:00
|
|
|
sha256 = "sha256-VAtfJ1PXTSPMoQ4NqX0GcZMyi15edxWj6Xsj6h1b7hc=";
|
2021-03-26 00:00:38 +01:00
|
|
|
};
|
|
|
|
|
2021-11-03 18:12:44 +01:00
|
|
|
vendorSha256 = "sha256-s6+Rs+G4z5fcmUiwGjeDoQYKWJz0a/PCejfKyn8WWxs=";
|
2021-03-26 00:00:38 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|