tvl-depot/ops/yandex-cloud-rs/default.nix
Vincent Ambo c82b926e31 chore(ops/yandex-cloud-rs): bump API definitions to 2023-09-04
Change-Id: I6ef83796a01014b01ac8aef6c7f500863f5cbf03
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9305
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
2023-09-12 12:57:15 +00:00

22 lines
659 B
Nix

{ depot, lib, pkgs, ... }:
let
protoSrc = pkgs.fetchFromGitHub {
owner = "yandex-cloud";
repo = "cloudapi";
rev = "b4383be5ebe360bd946e49c8eaf647a73e9c44c0";
sha256 = "0z4jyw2cylvyrq5ja8pcaqnlf6lf6ximj85hgjag6ckawayk1rzx";
};
in
pkgs.rustPlatform.buildRustPackage rec {
name = "yandex-cloud-rs";
src = depot.third_party.gitignoreSource ./.;
cargoLock.lockFile = ./Cargo.lock;
YANDEX_CLOUD_PROTOS = "${protoSrc}";
nativeBuildInputs = [ pkgs.protobuf ];
# The generated doc comments contain lots of things that rustc
# *thinks* are doctests, but are actually just garbage leading to
# compiler errors.
doCheck = false;
}