2023-04-25 02:08:41 +02:00
|
|
|
{ depot, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
protoSrc = pkgs.fetchFromGitHub {
|
|
|
|
owner = "yandex-cloud";
|
|
|
|
repo = "cloudapi";
|
2023-09-12 14:44:01 +02:00
|
|
|
rev = "b4383be5ebe360bd946e49c8eaf647a73e9c44c0";
|
|
|
|
sha256 = "0z4jyw2cylvyrq5ja8pcaqnlf6lf6ximj85hgjag6ckawayk1rzx";
|
2023-04-25 02:08:41 +02:00
|
|
|
};
|
|
|
|
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;
|
|
|
|
}
|