biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / networking / oapi-codegen / default.nix
blob9cbd1e9f56ffef7a84553c5c68541ca6c5a18495
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "oapi-codegen";
8   version = "2.4.1";
10   src = fetchFromGitHub {
11     owner = "deepmap";
12     repo = pname;
13     rev = "refs/tags/v${version}";
14     hash = "sha256-21VhHSyfF+NHkXlr2svjwBNZmfS1O448POBP9XUQxak=";
15   } ;
17   vendorHash = "sha256-bp5sFZNJFQonwfF1RjCnOMKZQkofHuqG0bXdG5Hf3jU=";
19   # Tests use network
20   doCheck = false;
22   subPackages = [ "cmd/oapi-codegen" ];
24   ldflags = [ "-X main.noVCSVersionOverride=${version}" ] ;
26   meta = with lib; {
27     description = "Go client and server OpenAPI 3 generator";
28     homepage = "https://github.com/deepmap/oapi-codegen";
29     changelog = "https://github.com/deepmap/oapi-codegen/releases/tag/v${version}";
30     license = licenses.asl20;
31     maintainers = with maintainers; [ j4m3s ];
32     mainProgram = "oapi-codegen";
33   };