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 {
|
||||
pname = "doctl";
|
||||
version = "${major}.${minor}.${patch}";
|
||||
major = "1";
|
||||
minor = "35";
|
||||
patch = "0";
|
||||
version = "1.40.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
|
||||
'';
|
||||
subPackages = [ "cmd/doctl" ];
|
||||
|
||||
buildFlagsArray = ''
|
||||
-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
|
||||
'';
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "digitalocean";
|
||||
repo = "doctl";
|
||||
rev = "v${version}";
|
||||
sha256 = "1blg4xd01vvr8smpii60jlk7rg1cg64115azixw9q022f7cnfiyw";
|
||||
owner = "digitalocean";
|
||||
repo = "doctl";
|
||||
rev = "v${version}";
|
||||
sha256 = "1x8rr3707mmbfnjn3ck0953xkkrfq5r8zflbxpkqlfz9k978z835";
|
||||
};
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "A command line tool for DigitalOcean services";
|
||||
homepage = https://github.com/digitalocean/doctl;
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
maintainers = [ stdenv.lib.maintainers.siddharthist ];
|
||||
homepage = "https://github.com/digitalocean/doctl";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.siddharthist ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user