Merge pull request #87924 from zowoq/doctl
doctl: 1.40.0 -> 1.43.0, switch to buildGoModule
This commit is contained in:
commit
9c25fd7f40
1 changed files with 9 additions and 9 deletions
|
@ -1,19 +1,19 @@
|
|||
{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "doctl";
|
||||
version = "1.40.0";
|
||||
version = "1.43.0";
|
||||
|
||||
goPackagePath = "github.com/digitalocean/doctl";
|
||||
vendorSha256 = null;
|
||||
|
||||
subPackages = [ "cmd/doctl" ];
|
||||
|
||||
buildFlagsArray = ''
|
||||
buildFlagsArray = let t = "github.com/digitalocean/doctl"; in ''
|
||||
-ldflags=
|
||||
-X ${goPackagePath}.Major=${lib.versions.major version}
|
||||
-X ${goPackagePath}.Minor=${lib.versions.minor version}
|
||||
-X ${goPackagePath}.Patch=${lib.versions.patch version}
|
||||
-X ${goPackagePath}.Label=release
|
||||
-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 a new issue