nixpkgs-suyu/pkgs/development/tools/go-swagger/default.nix

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

30 lines
880 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "go-swagger";
2022-01-24 12:42:25 +01:00
version = "0.29.0";
src = fetchFromGitHub {
owner = "go-swagger";
repo = pname;
rev = "v${version}";
2022-01-24 12:42:25 +01:00
sha256 = "sha256-sahInHXv1GtylsY8kpw1dDjKiENmq4myx+7mq60vJAI=";
};
2022-01-31 07:51:35 +01:00
vendorSha256 = "sha256-KLV6ABo1K+KtAzAQ4FcFiK1LAZEsKup+BtgjRJfonAY=";
doCheck = false;
subPackages = [ "cmd/swagger" ];
2021-08-26 08:45:51 +02: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 11:20:00 +02: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 ];
mainProgram = "swagger";
};
}