mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
go-swagger: add changelog to meta
This commit is contained in:
parent
6735aa230d
commit
947e4c0bca
@ -1,4 +1,7 @@
|
||||
{ buildGoModule, fetchFromGitHub, lib }:
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "go-swagger";
|
||||
@ -7,8 +10,8 @@ buildGoModule rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "go-swagger";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-5jnSuJqy5oaRxmZh2rr1hoBJPS4S9s0FhMZ4AY61w1I=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-5jnSuJqy5oaRxmZh2rr1hoBJPS4S9s0FhMZ4AY61w1I=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-EVsJP04yBiquux5LRR23bGRzrLiXBO9VA8UGlZEpgi8=";
|
||||
@ -17,11 +20,17 @@ buildGoModule rec {
|
||||
|
||||
subPackages = [ "cmd/swagger" ];
|
||||
|
||||
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}" ];
|
||||
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}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Golang implementation of Swagger 2.0, representation of your RESTful API";
|
||||
homepage = "https://github.com/go-swagger/go-swagger";
|
||||
changelog = "https://github.com/go-swagger/go-swagger/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ kalbasit ];
|
||||
mainProgram = "swagger";
|
||||
|
Loading…
Reference in New Issue
Block a user