Unverified Commit d6f2a1de authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #230942 from 0x4A6F/master-silicon

silicon: fix build on aarch64-linux
parents b7e217ad c0f48d36
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
, stdenv
, rustPlatform
, fetchFromGitHub
, fetchpatch
, pkg-config
, cmake
, llvmPackages
@@ -29,6 +30,14 @@ rustPlatform.buildRustPackage rec {
    sha256 = "sha256-RuzaRJr1n21MbHSeHBt8CjEm5AwbDbvX9Nw5PeBTl+w=";
  };

  patches = [
   # fix build on aarch64-linux, see https://github.com/Aloxaf/silicon/pull/210
    (fetchpatch {
      url = "https://github.com/Aloxaf/silicon/commit/f666c95d3dab85a81d60067e2f25d29ee8ab59e7.patch";
      hash = "sha256-L6tF9ndC38yVn5ZNof1TMxSImmaqZ6bJ/NYhb0Ebji4=";
    })
  ];

  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {