Unverified Commit 8317cc54 authored by Alyssa Ross's avatar Alyssa Ross Committed by GitHub
Browse files

cloud-hypervisor: backport Rust 1.90+ crash fixes (#464618)

parents 40e77e9e 24075e0c
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  rustPlatform,
  pkg-config,
  dtc,
@@ -19,6 +20,19 @@ rustPlatform.buildRustPackage rec {
    hash = "sha256-bPPs/4XMcvOH4BGfQrjQdvgjGWae4UEZjzPKjalDN3w=";
  };

  patches = [
    (fetchpatch {
      name = "vsock-seccomp-Rust-1.90.patch";
      url = "https://github.com/cloud-hypervisor/cloud-hypervisor/commit/ec57aade1563075e37b8e9ccc0b85fe2c04a54b8.patch";
      hash = "sha256-M+I+ZbiNDV1a8Y46+/mPTyDlQgQS7G6ytvPgli0NhJ0=";
    })
    (fetchpatch {
      name = "vfio-user-seccomp-Rust-1.90.patch";
      url = "https://github.com/cloud-hypervisor/cloud-hypervisor/commit/95b8c6afdd6eec9810243f92ec1956dccfe305da.patch";
      hash = "sha256-kCP/Fu0Dg+GdnwyFQLqZWKlbqO9w4KRJcbV4sReSDYM=";
    })
  ];

  cargoHash = "sha256-5EK9V9yiF/UjmlYSKBIJgQOA1YU33ezicLikWYnKFAo=";

  separateDebugInfo = true;