02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
25 lines
657 B
Nix
25 lines
657 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-swag";
|
|
version = "1.8.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "swaggo";
|
|
repo = "swag";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-+e/wUHoeJ00MbGfkDpGwRvJH+fboMfyGY+SXbqBqP1c=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-RqhGGIwruAlrif2FZ+tvsicns56Ifjpy2ZHovDyjdB4=";
|
|
|
|
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";
|
|
};
|
|
}
|