nixpkgs/pkgs/development/tools/go-swag/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
657 B
Nix
Raw Normal View History

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