mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
doctl: buildFlagsArray -> ldflags
This commit is contained in:
parent
12c92f4429
commit
479b3828bb
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user