doctl: 1.3.1 -> 1.5.0

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2016-11-17 23:32:21 +01:00
parent fb62bc90a1
commit 561518e9ff
No known key found for this signature in database
GPG Key ID: 083CC6FD6EB699A3

View File

@ -2,15 +2,26 @@
buildGoPackage rec { buildGoPackage rec {
name = "doctl-${version}"; name = "doctl-${version}";
version = "1.3.1"; version = "${major}.${minor}.${patch}";
rev = "a57555c195d06bc7aa5037af77fde0665ad1231f"; major = "1";
minor = "5";
patch = "0";
goPackagePath = "github.com/digitalocean/doctl"; 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 { src = fetchFromGitHub {
owner = "digitalocean"; owner = "digitalocean";
repo = "doctl"; repo = "doctl";
rev = "${rev}"; rev = "v${version}";
sha256 = "03z652fw0a628gv666w8vpi05a4sdilvs1j5scjhcbi82zsbkvma"; sha256 = "0dk7l4b0ngqkwdlx8qgr99jzipyzazvkv7dybi75dnp725lwxkl2";
}; };
meta = { meta = {