2020-06-18 15:10:54 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-swagger";
|
2021-10-29 20:58:41 +01:00
|
|
|
version = "0.28.0";
|
2020-06-18 15:10:54 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "go-swagger";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-29 20:58:41 +01:00
|
|
|
sha256 = "sha256-Bw84HQxrI8cSBEM1cxXmWCPqKZa5oGsob2iuUsiAZ+A=";
|
2020-06-18 15:10:54 +01:00
|
|
|
};
|
|
|
|
|
2021-10-29 20:58:41 +01:00
|
|
|
vendorSha256 = "sha256-ZNRJZQ7DwT/+scsbSud/IpSX06veOtJ5Aszj0RbS870=";
|
2020-06-18 15:10:54 +01:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-18 15:10:54 +01:00
|
|
|
subPackages = [ "cmd/swagger" ];
|
|
|
|
|
2021-08-26 07:45:51 +01: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-07-20 10:20:00 +01:00
|
|
|
|
2020-06-18 15:10:54 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|