2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 11:44:07 +00:00

doctl: buildFlagsArray -> ldflags

This commit is contained in:
zowoq 2021-08-05 12:32:48 +10:00
parent 12c92f4429
commit 479b3828bb

View File

@ -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 ];