Skip to content

Commit

Permalink
packages/cloud-hypervisor: 38.0.72 -> 41.0.79; fix build
Browse files Browse the repository at this point in the history
This bumps the package to get rid of the patches and supresses the `missing_docs` lint which breaks compilation on Rust 1.83.0+.
  • Loading branch information
msanft committed Jan 6, 2025
1 parent 855705d commit d99396e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 167 deletions.

This file was deleted.

This file was deleted.

28 changes: 14 additions & 14 deletions packages/by-name/microsoft/cloud-hypervisor/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,34 @@

rustPlatform.buildRustPackage rec {
pname = "cloud-hypervisor";
version = "38.0.72";
version = "41.0.79";

src = fetchFromGitHub {
owner = "microsoft";
repo = "cloud-hypervisor";
rev = "refs/tags/msft/v${version}";
hash = "sha256-wGLRBMZUiGRphED0a+GvKPDyhZBtg6aYoyOlvRtmmEA=";
hash = "sha256-3uDPeZzdc69i0rCn3/Kac4gCp1ZTZKkbwlsocIifN4A=";
};

cargoLock = {
lockFile = "${src}/Cargo.lock";
outputHashes = {
"acpi_tables-0.1.0" = "sha256-syDq+db1hTne6QoP0vMGUv4tB0J9arQG2Ea2hHW1k3M=";
"micro_http-0.1.0" = "sha256-gyeOop6AMXEIbLXhJMN/oYGGU8Un8Y0nFZc9ucCa0y4=";
"mshv-bindings-0.1.1" = "sha256-vg4kStPBvHtXLuHMQzzpn4voDcVgruO+OqQ1yUCAi/U=";
"vfio-bindings-0.4.0" = "sha256-Dk4T2dMzPZ+Aoq1YSXX2z1Nky8zvyDl7b+A8NH57Hkc=";
"acpi_tables-0.1.0" = "sha256-a6ojB2XVeH+YzzXRle0agg+ljn0Jsgyaf6TJZAGt8sQ=";
"micro_http-0.1.0" = "sha256-yIgcoEfc7eeS1+bijzkifaBxVNHa71Y+Vn79owMaKvM=";
"vfio-bindings-0.4.0" = "sha256-uggHjJ64R+uwaUU/a+gApitKy+VBxly3gLaNcW4BjKk=";
"vfio_user-0.1.0" = "sha256-LJ84k9pMkSAaWkuaUd+2LnPXnNgrP5LdbPOc1Yjz5xA=";
"vm-fdt-0.2.0" = "sha256-lKW4ZUraHomSDyxgNlD5qTaBTZqM0Fwhhh/08yhrjyE=";
"kvm-bindings-0.7.0" = "sha256-hXv5N3TTwGQaVxdQ/DTzLt+uwLxFnstJwNhxRD2K8TM=";
"igvm-0.1.0" = "sha256-l+Qyhdy3b8h8hPLHg5M0os8aSkjM55hAP5nqi0AGmjo=";
"versionize_derive-0.1.6" = "sha256-eI9fM8WnEBZvskPhU67IWeN6QAPg2u5EBT+AOxfb/fY=";
"mshv-bindings-0.3.0" = "sha256-IqmFB4nyENsfEPqiSYv52sL4LDiv+rCabTiIxE1MWZ0=";
"vm-fdt-0.3.0" = "sha256-9PywgSnSL+8gT6lcl9t6w7X4fEINa+db+H1vWS+gDOI=";
};
};

patches = [
./0001-snp-fix-panic-when-rejecting-extended-guest-report.patch
./0002-hypervisor-mshv-implement-extended-guest-requests-wi.patch
];
# Allow compilation with Rust 1.83.0, which requires public methods in
# test modules to have documentation when the `missing_docs` lint is enabled.
# Upstream issue: https://github.com/cloud-hypervisor/cloud-hypervisor/issues/6903
postPatch = ''
substituteInPlace rate_limiter/src/lib.rs \
--replace-fail '#![deny(missing_docs)]' ""
'';

separateDebugInfo = true;

Expand Down

0 comments on commit d99396e

Please sign in to comment.