diff options
author | Vincent Demeester <vincent@sbr.pm> | 2016-11-17 23:32:21 +0100 |
---|---|---|
committer | Vincent Demeester <vincent@sbr.pm> | 2016-11-17 23:32:21 +0100 |
commit | 561518e9ff430942578b6467393a5b5a4de21be2 (patch) | |
tree | c59241910bfcfc821b6a228664fa24960d46537a /pkgs/development/tools/doctl | |
parent | fb62bc90a14021e70be2ec00f33f951186b55784 (diff) |
doctl: 1.3.1 -> 1.5.0
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat (limited to 'pkgs/development/tools/doctl')
-rw-r--r-- | pkgs/development/tools/doctl/default.nix | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/pkgs/development/tools/doctl/default.nix b/pkgs/development/tools/doctl/default.nix index 4a7d1bf87e31a..37517f306e826 100644 --- a/pkgs/development/tools/doctl/default.nix +++ b/pkgs/development/tools/doctl/default.nix @@ -2,15 +2,26 @@ buildGoPackage rec { name = "doctl-${version}"; - version = "1.3.1"; - rev = "a57555c195d06bc7aa5037af77fde0665ad1231f"; + version = "${major}.${minor}.${patch}"; + major = "1"; + minor = "5"; + patch = "0"; goPackagePath = "github.com/digitalocean/doctl"; + excludedPackages = ''\(doctl-gen-doc\|install-doctl\|release-doctl\)''; + buildFlagsArray = let t = "${goPackagePath}"; in '' + -ldflags= + -X ${t}.Major=${major} + -X ${t}.Minor=${minor} + -X ${t}.Patch=${patch} + -X ${t}.Label=release + ''; + src = fetchFromGitHub { owner = "digitalocean"; repo = "doctl"; - rev = "${rev}"; - sha256 = "03z652fw0a628gv666w8vpi05a4sdilvs1j5scjhcbi82zsbkvma"; + rev = "v${version}"; + sha256 = "0dk7l4b0ngqkwdlx8qgr99jzipyzazvkv7dybi75dnp725lwxkl2"; }; meta = { |