diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-08-05 12:32:48 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-08-06 10:54:38 +1000 |
commit | 479b3828bba120fd097e12026fff846f805d5e50 (patch) | |
tree | c4e49ce78a5a701a252cd49d640a3fe0812cb0a7 /pkgs/development/tools/doctl | |
parent | 12c92f44292f2b474ed4f98320c910d6ac55f1b9 (diff) |
doctl: buildFlagsArray -> ldflags
Diffstat (limited to 'pkgs/development/tools/doctl')
-rw-r--r-- | pkgs/development/tools/doctl/default.nix | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgs/development/tools/doctl/default.nix b/pkgs/development/tools/doctl/default.nix index aa7c7c8ca059d..74cb56c201d9f 100644 --- a/pkgs/development/tools/doctl/default.nix +++ b/pkgs/development/tools/doctl/default.nix @@ -10,13 +10,12 @@ buildGoModule rec { subPackages = [ "cmd/doctl" ]; - buildFlagsArray = let t = "github.com/digitalocean/doctl"; in '' - -ldflags= - -X ${t}.Major=${lib.versions.major version} - -X ${t}.Minor=${lib.versions.minor version} - -X ${t}.Patch=${lib.versions.patch version} - -X ${t}.Label=release - ''; + ldflags = let t = "github.com/digitalocean/doctl"; in [ + "-X ${t}.Major=${lib.versions.major version}" + "-X ${t}.Minor=${lib.versions.minor version}" + "-X ${t}.Patch=${lib.versions.patch version}" + "-X ${t}.Label=release" + ]; nativeBuildInputs = [ installShellFiles ]; |