2020-06-18 14:10:54 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-swagger";
|
2020-07-20 05:47:54 +00:00
|
|
|
version = "0.25.0";
|
2020-06-18 14:10:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "go-swagger";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-07-20 05:47:54 +00:00
|
|
|
sha256 = "05zyja58ff0k4fsfmb1j8q5p7lysi78m7jklrzz2xv8ianifkfbg";
|
2020-06-18 14:10:54 +00:00
|
|
|
};
|
|
|
|
|
2020-07-20 05:47:54 +00:00
|
|
|
vendorSha256 = "0vvr167spwk7whqzdp5vd8sm0qwc5g3namm4iqw3vff2pifjgs40";
|
2020-06-18 14:10:54 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-18 14:10:54 +00:00
|
|
|
subPackages = [ "cmd/swagger" ];
|
|
|
|
|
2020-07-20 09:20:00 +00:00
|
|
|
buildFlagsArray = [ "-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-06-18 14:10:54 +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 ];
|
|
|
|
};
|
|
|
|
}
|