1076b509ae
Change-Id: I0c4e77587b9fac14017449eb6a4630265b07950e Reviewed-on: https://cl.tvl.fyi/c/depot/+/8599 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
22 lines
659 B
Nix
22 lines
659 B
Nix
{ depot, lib, pkgs, ... }:
|
|
|
|
let
|
|
protoSrc = pkgs.fetchFromGitHub {
|
|
owner = "yandex-cloud";
|
|
repo = "cloudapi";
|
|
rev = "ca3d23bc2e9e56042a23a6cf0bade98b21aa0f31";
|
|
sha256 = "1qsmycd0nkbskb9dj36l45914b0hpr6vpymn47vwa6qsfqraxj1m";
|
|
};
|
|
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;
|
|
}
|