feat(corp/ops): add yc-cli
Change-Id: If6578693a5d5ef49d059735eeade3bebf13c4d16 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8493 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
55c9f4a803
commit
0637ab3add
1 changed files with 16 additions and 0 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue