Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / go-swagger / default.nix
blob5a536db51c2267a24ec7aa60fdc245840d8207d2
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "go-swagger";
8   version = "0.30.5";
10   src = fetchFromGitHub {
11     owner = "go-swagger";
12     repo = pname;
13     rev = "refs/tags/v${version}";
14     hash = "sha256-38Ytv/mQVi0xTydFTPNizJIjYPL+lOws6jHsRjxSC4o=";
15   };
17   vendorHash = "sha256-TqoTzxPGF0BBUfLtYWkljRcmr08m4zo5iroWMklxL7U=";
19   doCheck = false;
21   subPackages = [ "cmd/swagger" ];
23   ldflags = [
24     "-s"
25     "-w"
26     "-X github.com/go-swagger/go-swagger/cmd/swagger/commands.Version=${version}"
27     "-X github.com/go-swagger/go-swagger/cmd/swagger/commands.Commit=${src.rev}"
28   ];
30   meta = with lib; {
31     description = "Golang implementation of Swagger 2.0, representation of your RESTful API";
32     homepage = "https://github.com/go-swagger/go-swagger";
33     changelog = "https://github.com/go-swagger/go-swagger/releases/tag/v${version}";
34     license = licenses.asl20;
35     maintainers = with maintainers; [ kalbasit ];
36     mainProgram = "swagger";
37   };