doctl: 1.35.0 -> 1.40.0
This commit is contained in:
parent
6fcf77e87a
commit
e6d4b95fed
@ -1,34 +1,33 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "doctl";
|
pname = "doctl";
|
||||||
version = "${major}.${minor}.${patch}";
|
version = "1.40.0";
|
||||||
major = "1";
|
|
||||||
minor = "35";
|
|
||||||
patch = "0";
|
|
||||||
goPackagePath = "github.com/digitalocean/doctl";
|
goPackagePath = "github.com/digitalocean/doctl";
|
||||||
|
|
||||||
excludedPackages = ''\(doctl-gen-doc\|install-doctl\|release-doctl\)'';
|
subPackages = [ "cmd/doctl" ];
|
||||||
buildFlagsArray = let t = goPackagePath; in ''
|
|
||||||
-ldflags=
|
buildFlagsArray = ''
|
||||||
-X ${t}.Major=${major}
|
-ldflags=
|
||||||
-X ${t}.Minor=${minor}
|
-X ${goPackagePath}.Major=${lib.versions.major version}
|
||||||
-X ${t}.Patch=${patch}
|
-X ${goPackagePath}.Minor=${lib.versions.minor version}
|
||||||
-X ${t}.Label=release
|
-X ${goPackagePath}.Patch=${lib.versions.patch version}
|
||||||
'';
|
-X ${goPackagePath}.Label=release
|
||||||
|
'';
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "digitalocean";
|
owner = "digitalocean";
|
||||||
repo = "doctl";
|
repo = "doctl";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1blg4xd01vvr8smpii60jlk7rg1cg64115azixw9q022f7cnfiyw";
|
sha256 = "1x8rr3707mmbfnjn3ck0953xkkrfq5r8zflbxpkqlfz9k978z835";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "A command line tool for DigitalOcean services";
|
description = "A command line tool for DigitalOcean services";
|
||||||
homepage = https://github.com/digitalocean/doctl;
|
homepage = "https://github.com/digitalocean/doctl";
|
||||||
license = stdenv.lib.licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = [ stdenv.lib.maintainers.siddharthist ];
|
maintainers = [ maintainers.siddharthist ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user