1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 09:31:01 +00:00
zowoq 2020-05-16 13:12:50 +10:00
parent 82263944a7
commit adb9f60c13

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