depot/third_party/nixpkgs/pkgs/development/tools/go-swag/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

25 lines
656 B
Nix

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "go-swag";
version = "1.8.10";
src = fetchFromGitHub {
owner = "swaggo";
repo = "swag";
rev = "v${version}";
sha256 = "sha256-PDK1TI99/8hAuyK4NOb357WZG0JBno8er8HMfus5V7Q=";
};
vendorHash = "sha256-iu4rSgB7Gu5n1Sgu0jU9QwdwvuZ5rAqysvKuBnJd2jQ=";
subPackages = [ "cmd/swag" ];
meta = with lib; {
description = "Automatically generate RESTful API documentation with Swagger 2.0 for Go";
homepage = "https://github.com/swaggo/swag";
license = licenses.mit;
maintainers = with maintainers; [ stephenwithph ];
mainProgram = "swag";
};
}