mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-22 05:19:00 +02:00
go-swagger: add ldflags
This commit is contained in:
parent
bac0c4fecb
commit
0361a0e9d6
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue