2020-06-15 15:56:04 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-swagger";
|
2021-04-08 16:26:57 +00:00
|
|
|
version = "0.27.0";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "go-swagger";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-08 16:26:57 +00:00
|
|
|
sha256 = "sha256-S3/sXmgogxhMv53Gd/ir6ScirYQtt5kn04ZfRiS6NoA=";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
vendorSha256 = "sha256-ABGjrMZdgsAaEhJlGbvbX77t7TsodraadNyItESMbEc=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/swagger" ];
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X github.com/go-swagger/go-swagger/cmd/swagger/commands.Version=${version}" "-X github.com/go-swagger/go-swagger/cmd/swagger/commands.Commit=${src.rev}" ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Golang implementation of Swagger 2.0, representation of your RESTful API";
|
|
|
|
homepage = "https://github.com/go-swagger/go-swagger";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
};
|
|
|
|
}
|