diff options
author | Sebastian Krohn <seb@ds.ag> | 2020-05-05 23:56:26 +0200 |
---|---|---|
committer | Sebastian Krohn <seb@ds.ag> | 2020-05-08 14:27:32 +0200 |
commit | 5e337ad90bfcd420871cb9d641d7dfdc5a164c29 (patch) | |
tree | 5686fd5ac844fc8c8d48aac27fba8ea43c5156aa /pkgs/tools/admin/exoscale-cli/default.nix | |
parent | 1a6a810d26ccb0821b0c3000eb771583603d2646 (diff) | |
download | nixpkgs-5e337ad90bfcd420871cb9d641d7dfdc5a164c29.tar nixpkgs-5e337ad90bfcd420871cb9d641d7dfdc5a164c29.tar.gz nixpkgs-5e337ad90bfcd420871cb9d641d7dfdc5a164c29.tar.bz2 nixpkgs-5e337ad90bfcd420871cb9d641d7dfdc5a164c29.tar.lz nixpkgs-5e337ad90bfcd420871cb9d641d7dfdc5a164c29.tar.xz nixpkgs-5e337ad90bfcd420871cb9d641d7dfdc5a164c29.tar.zst nixpkgs-5e337ad90bfcd420871cb9d641d7dfdc5a164c29.zip |
exoscale-cli: init at 1.12.0
Diffstat (limited to 'pkgs/tools/admin/exoscale-cli/default.nix')
-rw-r--r-- | pkgs/tools/admin/exoscale-cli/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/admin/exoscale-cli/default.nix b/pkgs/tools/admin/exoscale-cli/default.nix new file mode 100644 index 00000000000..a408746c7fd --- /dev/null +++ b/pkgs/tools/admin/exoscale-cli/default.nix @@ -0,0 +1,32 @@ +{ stdenv, buildGo114Package, fetchFromGitHub }: + +buildGo114Package rec { + pname = "exoscale-cli"; + version = "1.12.0"; + + src = fetchFromGitHub { + owner = "exoscale"; + repo = "cli"; + rev = "v${version}"; + sha256 = "04ym7mfv565icj3lmd2nrvq9asawwmmzg09681pj9py61ws56bxr"; + }; + + goPackagePath = "github.com/exoscale/cli"; + goDeps = ./deps.nix; + + # ensures only the cli binary is built and we don't clutter bin/ with submodules + subPackages = [ "." ]; + + # we need to rename the resulting binary but can't use buildFlags with -o here + # because these are passed to "go install" which does not recognize -o + postBuild = '' + mv go/bin/cli go/bin/exo + ''; + + meta = { + description = "Command-line tool for everything at Exoscale: compute, storage, dns"; + homepage = "https://github.com/exoscale/cli"; + license = stdenv.lib.licenses.asl20; + maintainers = with stdenv.lib.maintainers; [ dramaturg ]; + }; +} |