diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-03-26 00:24:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 00:24:07 +0100 |
commit | 97101da6b013762a5c7661c4280bc04e86096ced (patch) | |
tree | e40f8361b281fef676c2237f686d87d4dac87a2c /pkgs/tools | |
parent | 019908e3719c50f2c14fe117f57ec9f57c6a24e4 (diff) | |
parent | c516b56942c9712469b711a2c46036d0f397e101 (diff) |
Merge pull request #117625 from j4m3s-s/add-oapi-codegen
oapi-codegen: init at 1.5.6
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/oapi-codegen/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/networking/oapi-codegen/default.nix b/pkgs/tools/networking/oapi-codegen/default.nix new file mode 100644 index 000000000000..583189f57db2 --- /dev/null +++ b/pkgs/tools/networking/oapi-codegen/default.nix @@ -0,0 +1,25 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "oapi-codegen"; + version = "1.5.6"; + + src = fetchFromGitHub { + owner = "deepmap"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-edIm1O+LQdmKhH8/5WuSsxVtOcf3VlkObGjIY+30mms="; + }; + + vendorSha256 = "sha256-lhWnPZavtBEa4A76rvr0xw3L5W6HYK1Uw+PW8z8gWuU="; + + # Tests use network + doCheck = false; + + meta = with lib; { + description = "Go client and server OpenAPI 3 generator"; + homepage = "https://github.com/deepmap/oapi-codegen"; + license = licenses.asl20; + maintainers = [ maintainers.j4m3s ]; + }; +} |