3
0
Fork 0
forked from mirrors/nixpkgs

exoscale-cli: update ldflags

This commit is contained in:
Mario Rodas 2020-08-10 04:20:00 -05:00
parent 276d14f3ea
commit 44850722c8
No known key found for this signature in database
GPG key ID: 325649BCA6D53027

View file

@ -12,7 +12,8 @@ buildGoPackage rec {
};
goPackagePath = "github.com/exoscale/cli";
buildFlags = "-ldflags=-X=main.version=${version}";
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.commit=${src.rev}" ];
# ensures only the cli binary is built and we don't clutter bin/ with submodules
subPackages = [ "." ];