Merge pull request #173679 from risicle/ris-moarvm-mimalloc-darwin-fix

This commit is contained in:
Ben Siraphob 2022-05-23 17:09:10 -07:00 committed by GitHub
commit 1aacecae97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchurl
, fetchpatch
, perl
, CoreServices
, ApplicationServices
@ -15,6 +16,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-+3HNE5EkZEgrmbM/DAbp/XxRoVHG5jKpIgz5PFhV/a8=";
};
patches = [
(fetchpatch {
name = "mimalloc-older-macos-fixes.patch";
url = "https://github.com/microsoft/mimalloc/commit/40e0507a5959ee218f308d33aec212c3ebeef3bb.patch";
stripLen = 1;
extraPrefix = "3rdparty/mimalloc/";
sha256 = "1gcbn1850vy7xzalhn9ffnsg6x1ywi3fmnxvnal3m6lmb4kz5kb1";
})
];
postPatch = ''
patchShebangs .
'' + lib.optionalString stdenv.isDarwin ''