{ buildGoModule, fetchFromGitHub, lib }: buildGoModule rec { pname = "go-swag"; version = "1.8.11"; src = fetchFromGitHub { owner = "swaggo"; repo = "swag"; rev = "v${version}"; sha256 = "sha256-clWYiDJN9fJLLkMfURPKb377+YX7DZzwXWZ/YDW4fLU="; }; vendorHash = "sha256-0fubBlipY4eogg68JHZVO+fOAQMRKOqhk8z0qNLvDjM="; 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"; }; }