summary refs log blame commit diff
path: root/pkgs/development/tools/go-swag/default.nix
blob: 967fbb625a6e759ef8c36b57b4b5c83ef661e111 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                        
                       



                         
                        
                                                                   

    
                                                                       









                                                                                             
{ buildGoModule, fetchFromGitHub, lib }:

buildGoModule rec {
  pname = "go-swag";
  version = "1.7.9-p1";

  src = fetchFromGitHub {
    owner = "swaggo";
    repo = "swag";
    rev = "v${version}";
    sha256 = "sha256-JzPCNUoO3biNJLYKLkyJvVG/L7pqWBthtBuZL+Lc21U=";
  };

  vendorSha256 = "sha256-QphjiJSQRULphWjrJ8RzrUblTDYL/fYoSNT3+g0tP48=";

  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 ];
  };
}