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-10-04 16:56:33 +00:00
|
|
|
version = "2.4.1";
|
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-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-21VhHSyfF+NHkXlr2svjwBNZmfS1O448POBP9XUQxak=";
|
2024-04-21 15:54:59 +00:00
|
|
|
} ;
|
2021-03-20 04:20:00 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
vendorHash = "sha256-bp5sFZNJFQonwfF1RjCnOMKZQkofHuqG0bXdG5Hf3jU=";
|
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
|
|
|
};
|
|
|
|
}
|