go-swagger: add changelog to meta

This commit is contained in:
Fabian Affolter 2023-01-19 08:30:25 +01:00 committed by GitHub
parent 6735aa230d
commit 947e4c0bca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";