nixpkgs/pkgs/by-name/og/ogen/package.nix
2024-09-12 10:45:50 +02:00

36 lines
780 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "ogen";
version = "1.4.1";
src = fetchFromGitHub {
owner = "ogen-go";
repo = "ogen";
rev = "refs/tags/v${version}";
hash = "sha256-SwJY9VQafclAxEQ/cbRJALvMLlnSIItIOz92XzuCoCk=";
};
vendorHash = "sha256-IxG7y0Zy0DerCh5DRdSWSaD643BG/8Wj2wuYvkn+XzE=";
patches = [ ./modify-version-handling.patch ];
subPackages = [
"cmd/ogen"
"cmd/jschemagen"
];
meta = {
description = "OpenAPI v3 Code Generator for Go";
homepage = "https://github.com/ogen-go/ogen";
changelog = "https://github.com/ogen-go/ogen/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ seanrmurphy ];
mainProgram = "ogen";
};
}