nixpkgs/pkgs/tools/networking/oapi-codegen/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
743 B
Nix
Raw Normal View History

2022-12-04 12:10:21 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2021-03-25 23:00:38 +00:00
buildGoModule rec {
pname = "oapi-codegen";
2023-08-13 03:14:53 +00:00
version = "1.13.4";
2021-03-25 23:00:38 +00:00
src = fetchFromGitHub {
owner = "deepmap";
repo = pname;
2022-12-04 12:10:21 +00:00
rev = "refs/tags/v${version}";
2023-08-13 03:14:53 +00:00
hash = "sha256-9uHgc2q3ZNM0hQsAY+1RLAH3NfcV+dQo+WRk4OQ8q4Q=";
2021-03-25 23:00:38 +00:00
};
2023-08-13 03:14:53 +00:00
vendorHash = "sha256-VsZcdbOGRbHfjKPU+Y01xZCBq4fiVi7qoRBY9AqS0PM=";
2021-03-25 23:00:38 +00:00
# Tests use network
doCheck = false;
meta = with lib; {
description = "Go client and server OpenAPI 3 generator";
2022-12-04 12:10:21 +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-11 02:19:15 +00:00
mainProgram = "oapi-codegen";
2021-03-25 23:00:38 +00:00
};
}