From 2e732f8d8e151d111e6e1aaf293024e8dbdb2d5f Mon Sep 17 00:00:00 2001 From: Sean Murphy Date: Thu, 28 Mar 2024 15:08:50 +0100 Subject: [PATCH] oapi-codegen: 1.13.4 -> 2.1.0 --- pkgs/tools/networking/oapi-codegen/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/networking/oapi-codegen/default.nix b/pkgs/tools/networking/oapi-codegen/default.nix index 05098a828a11..00be12a82d8c 100644 --- a/pkgs/tools/networking/oapi-codegen/default.nix +++ b/pkgs/tools/networking/oapi-codegen/default.nix @@ -5,20 +5,24 @@ buildGoModule rec { pname = "oapi-codegen"; - version = "1.13.4"; + version = "2.1.0"; src = fetchFromGitHub { owner = "deepmap"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-9uHgc2q3ZNM0hQsAY+1RLAH3NfcV+dQo+WRk4OQ8q4Q="; - }; + hash = "sha256-5Bwe0THxwynuUuw7jI7KBDNC1Q4sHlnWwO2Kx5F/7PA="; + } ; - vendorHash = "sha256-VsZcdbOGRbHfjKPU+Y01xZCBq4fiVi7qoRBY9AqS0PM="; + vendorHash = "sha256-SqnFfx9bWneVEIyJS8fKe9NNcbPF4wI3qP5QvENqBrI="; # Tests use network doCheck = false; + subPackages = [ "cmd/oapi-codegen" ]; + + ldflags = [ "-X main.noVCSVersionOverride=${version}" ] ; + meta = with lib; { description = "Go client and server OpenAPI 3 generator"; homepage = "https://github.com/deepmap/oapi-codegen";