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
656 B
Nix
Raw Normal View History

2020-09-14 23:22:07 +00:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "go-swag";
2024-02-02 10:10:46 +00:00
version = "1.16.3";
2020-09-14 23:22:07 +00:00
src = fetchFromGitHub {
owner = "swaggo";
repo = "swag";
rev = "v${version}";
2024-02-02 10:10:46 +00:00
sha256 = "sha256-wS5m3dBiILxmVb6P559fGcONdCWc/5hhLAVMC+G1QZs=";
2020-09-14 23:22:07 +00:00
};
2024-02-02 10:10:46 +00:00
vendorHash = "sha256-BxWmEcx5IIT/yI46CJGE0vE1BRm5zwngc0x1dVy/04s=";
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 ];
mainProgram = "swag";
2020-09-14 23:22:07 +00:00
};
}