Commit 26afd529 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

pkgsMusl.crosvm: fix build

parent 494b7657
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
{ lib, rustPlatform, fetchgit, pkg-config, protobuf, python3, wayland-scanner
{ lib, rustPlatform, fetchgit, fetchpatch
, pkg-config, protobuf, python3, wayland-scanner
, libcap, libdrm, libepoxy, minijail, virglrenderer, wayland, wayland-protocols
}:

@@ -13,6 +14,15 @@ rustPlatform.buildRustPackage rec {
    fetchSubmodules = true;
  };

  patches = [
    # Backport fix for non-Glibc.
    (fetchpatch {
      url = "https://chromium.googlesource.com/chromiumos/platform/crosvm/+/8afa6096aa0417ccc5de0213a241dd7ebd25ac0a%5E%21/?format=TEXT";
      decode = "base64 -d";
      hash = "sha256-oRwGprs/P2ZG8BM9CMzyEyM8fjuyFINQw4rjTq9rKXA=";
    })
  ];

  separateDebugInfo = true;

  cargoSha256 = "EhxrtCGrwCcODCjPUONjY1glPGEXbjvk6No/g2kJzI8=";