2020-09-25 04:45:31 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-swag";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.8.10";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swaggo";
|
|
|
|
repo = "swag";
|
2022-01-27 00:19:43 +00:00
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-PDK1TI99/8hAuyK4NOb357WZG0JBno8er8HMfus5V7Q=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
vendorHash = "sha256-iu4rSgB7Gu5n1Sgu0jU9QwdwvuZ5rAqysvKuBnJd2jQ=";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
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 ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "swag";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|