mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
doctl: 1.3.1 -> 1.5.0
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
fb62bc90a1
commit
561518e9ff
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user