mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 09:31:01 +00:00
doctl: 1.40.0 -> 1.43.0, switch to buildGoModule
https://github.com/digitalocean/doctl/releases/tag/v1.41.0 https://github.com/digitalocean/doctl/releases/tag/v1.42.0 https://github.com/digitalocean/doctl/releases/tag/v1.43.0
This commit is contained in:
parent
82263944a7
commit
adb9f60c13
|
@ -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