2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "oapi-codegen";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.1.0";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deepmap";
|
|
|
|
repo = pname;
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-5Bwe0THxwynuUuw7jI7KBDNC1Q4sHlnWwO2Kx5F/7PA=";
|
|
|
|
} ;
|
2021-03-20 04:20:00 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-SqnFfx9bWneVEIyJS8fKe9NNcbPF4wI3qP5QvENqBrI=";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
# Tests use network
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
subPackages = [ "cmd/oapi-codegen" ];
|
|
|
|
|
|
|
|
ldflags = [ "-X main.noVCSVersionOverride=${version}" ] ;
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Go client and server OpenAPI 3 generator";
|
2022-12-17 10:02:37 +00:00
|
|
|
homepage = "https://github.com/deepmap/oapi-codegen";
|
|
|
|
changelog = "https://github.com/deepmap/oapi-codegen/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ j4m3s ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "oapi-codegen";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
}
|