2020-09-14 23:22:07 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-swag";
|
2023-03-29 17:49:17 +00:00
|
|
|
version = "1.8.12";
|
2020-09-14 23:22:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swaggo";
|
|
|
|
repo = "swag";
|
2021-09-12 23:16:53 +00:00
|
|
|
rev = "v${version}";
|
2023-03-29 17:55:01 +00:00
|
|
|
sha256 = "sha256-2rnaPN4C4pn9Whk5X2z1VVxm679EUpQdumJZx5uulr4=";
|
2020-09-14 23:22:07 +00:00
|
|
|
};
|
|
|
|
|
2023-03-29 17:49:17 +00:00
|
|
|
vendorHash = "sha256-yQPmiK1CQNn3sr482OEkdRLK6YP8CvPMA/nPGdVJbMc=";
|
2020-09-14 23:22:07 +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-05 00:46:39 +00:00
|
|
|
mainProgram = "swag";
|
2020-09-14 23:22:07 +00:00
|
|
|
};
|
|
|
|
}
|