aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/tools/hcloud
diff options
context:
space:
mode:
authorElmar Athmer <elmar@athmer.org>2018-02-03 00:36:02 +0100
committerElmar Athmer <elmar@athmer.org>2018-02-05 19:14:55 +0100
commit04769e898f5f453e4a59cda3a908b3fc334705fd (patch)
tree7ea0ea8ea6354a07f78e44d342aac2adbfac045d /pkgs/development/tools/hcloud
parent39f62c770b6e93e57240dbca64f5c298398ddaed (diff)
hcloud: init at 1.3.0
Diffstat (limited to 'pkgs/development/tools/hcloud')
-rw-r--r--pkgs/development/tools/hcloud/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/tools/hcloud/default.nix b/pkgs/development/tools/hcloud/default.nix
new file mode 100644
index 000000000000..e56502a4ad05
--- /dev/null
+++ b/pkgs/development/tools/hcloud/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+ name = "hcloud-${version}";
+ version = "1.3.0";
+ goPackagePath = "github.com/hetznercloud/cli";
+
+ src = fetchFromGitHub {
+ owner = "hetznercloud";
+ repo = "cli";
+ rev = "v${version}";
+ sha256 = "1216qz1kk38vkvfrznjwb65vsbhscqvvrsbp2i6pnf0i85p00pqm";
+ };
+
+ buildFlagsArray = [ "-ldflags=" "-X github.com/hetznercloud/cli.Version=${version}" ];
+
+ meta = {
+ description = "A command-line interface for Hetzner Cloud, a provider for cloud virtual private servers";
+ homepage = https://github.com/hetznercloud/cli;
+ license = stdenv.lib.licenses.mit;
+ platforms = stdenv.lib.platforms.all;
+ maintainers = [ stdenv.lib.maintainers.zauberpony ];
+ };
+}