Merge pull request #87924 from zowoq/doctl

doctl: 1.40.0 -> 1.43.0, switch to buildGoModule
This commit is contained in:
Mario Rodas 2020-05-16 06:59:25 -05:00 committed by GitHub
commit 9c25fd7f40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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