go-swagger: add ldflags

This commit is contained in:
Mario Rodas 2020-07-20 04:20:00 -05:00
parent bac0c4fecb
commit 0361a0e9d6
No known key found for this signature in database
GPG key ID: 325649BCA6D53027

View file

@ -15,6 +15,8 @@ buildGoModule rec {
subPackages = [ "cmd/swagger" ];
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}" ];
meta = with lib; {
description = "Golang implementation of Swagger 2.0, representation of your RESTful API";
homepage = "https://github.com/go-swagger/go-swagger";