diff options
author | Vincent Ambo <mail@tazj.in> | 2023-04-21T14·38+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2023-04-24T10·56+0000 |
commit | 0637ab3add4f57359842a451ca9ffd70194524e2 (patch) | |
tree | a6ce0cf381b0e098ac2b2b8678e6cfe21f7ba84c /corp/ops | |
parent | 55c9f4a8036b7eb4cc56b700d5d975f47029337a (diff) |
feat(corp/ops): add yc-cli r/6108
Change-Id: If6578693a5d5ef49d059735eeade3bebf13c4d16 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8493 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'corp/ops')
-rw-r--r-- | corp/ops/default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/corp/ops/default.nix b/corp/ops/default.nix index 59a998cca032..87f71da7860c 100644 --- a/corp/ops/default.nix +++ b/corp/ops/default.nix @@ -12,10 +12,26 @@ depot.nix.readTree.drvTargets rec { src = lib.cleanSource ./.; }; + # Yandex Cloud CLI + yc-cli = pkgs.stdenv.mkDerivation rec { + pname = "yc-cli"; + version = "0.104.0"; + + src = pkgs.fetchurl { + url = "https://storage.yandexcloud.net/yandexcloud-yc/release/${version}/linux/amd64/yc"; + sha256 = "sha256:1k1dfqqmpy1kdzgg2d8byhsfpfh3fxrckpbvffwngb712isvqpdb"; + }; + + phases = [ "installPhase" ]; + installPhase = "install -D $src $out/bin/yc"; + }; + deps = depot.tools.depot-deps.overrideDeps { tf-yandex = { attr = "corp.ops.terraform"; cmd = "terraform"; }; + + yc.attr = "corp.ops.yc-cli"; }; } |