flyctl: set build flags

This commit is contained in:
Mario Rodas 2020-05-19 04:20:00 -05:00
parent 28194c7096
commit 9c320acd48
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027

View File

@ -15,13 +15,12 @@ buildGoModule rec {
go generate ./...
'';
preFixup = ''
rm $out/bin/doc
rm $out/bin/helpgen
'';
subPackages = [ "." ];
vendorSha256 = "10wcyxzkwvbhf86dq1rh852zgdg28draay0515zp459z34vv4zna";
buildFlagsArray = [ "-ldflags=-s -w -X github.com/superfly/flyctl/flyctl.Version=${version} -X github.com/superfly/flyctl/flyctl.Commit=${src.rev} -X github.com/superfly/flyctl/flyctl.BuildDate=1970-01-01T00:00:00+0000 -X github.com/superfly/flyctl/flyctl.Environment=production" ];
meta = with lib; {
description = "Command line tools for fly.io services";
homepage = "https://fly.io/";