go-swagger: add ldflags
This commit is contained in:
parent
bac0c4fecb
commit
0361a0e9d6
@ -15,6 +15,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
subPackages = [ "cmd/swagger" ];
|
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; {
|
meta = with lib; {
|
||||||
description = "Golang implementation of Swagger 2.0, representation of your RESTful API";
|
description = "Golang implementation of Swagger 2.0, representation of your RESTful API";
|
||||||
homepage = "https://github.com/go-swagger/go-swagger";
|
homepage = "https://github.com/go-swagger/go-swagger";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user