mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect continuation of: #538981
36 lines
903 B
Nix
36 lines
903 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "oapi-codegen";
|
|
version = "2.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oapi-codegen";
|
|
repo = "oapi-codegen";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-CrHseuO3gNFTJgP9b8Tec7qJ/jvmKgm3ZwiMBrAcIq8=";
|
|
};
|
|
|
|
vendorHash = "sha256-Oom7OcyWv+iXDb1AUsHXJ74eMYN9L7InrNuq4pfggYA=";
|
|
|
|
# Tests use network
|
|
doCheck = false;
|
|
|
|
subPackages = [ "cmd/oapi-codegen" ];
|
|
|
|
ldflags = [ "-X main.noVCSVersionOverride=${finalAttrs.version}" ];
|
|
|
|
meta = {
|
|
description = "Go client and server OpenAPI 3 generator";
|
|
homepage = "https://github.com/oapi-codegen/oapi-codegen";
|
|
changelog = "https://github.com/oapi-codegen/oapi-codegen/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ j4m3s ];
|
|
mainProgram = "oapi-codegen";
|
|
};
|
|
})
|