about summary refs log tree commit diff
path: root/corp
diff options
context:
space:
mode:
Diffstat (limited to 'corp')
-rw-r--r--corp/ops/default.nix16
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";
   };
 }