2020-09-15 01:22:07 +02:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-swag";
|
2022-02-23 07:29:04 +01:00
|
|
|
version = "1.8.0";
|
2020-09-15 01:22:07 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swaggo";
|
|
|
|
repo = "swag";
|
2021-09-13 01:16:53 +02:00
|
|
|
rev = "v${version}";
|
2022-02-23 07:29:04 +01:00
|
|
|
sha256 = "sha256-axvc3iwAfsKunheLLKmUThZh27axRh/GJRcKy9EfEBw=";
|
2020-09-15 01:22:07 +02:00
|
|
|
};
|
|
|
|
|
2022-02-12 09:59:00 +01:00
|
|
|
vendorSha256 = "sha256-QphjiJSQRULphWjrJ8RzrUblTDYL/fYoSNT3+g0tP48=";
|
2020-09-15 01:22:07 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|