about summary refs log tree commit diff
path: root/pkgs/development/interpreters/rakudo
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2022-05-19 23:27:32 +0100
committerRobert Scott <code@humanleg.org.uk>2022-05-22 12:02:31 +0100
commit7d56d31d822967dbd9d082889d2666cf81f1426c (patch)
treecacc29cdb7c3ce0241eebfe7f71f77cd8d56c00d /pkgs/development/interpreters/rakudo
parent6fe704d008a9254238f99f171cb36600ec5fade7 (diff)
moarvm: add patch fixing build of bundled mimalloc on darwin
same patch as introduced to our own mimalloc in
9ba8bda31328209bed6d4c0212735ff0e3c2cf95
Diffstat (limited to 'pkgs/development/interpreters/rakudo')
-rw-r--r--pkgs/development/interpreters/rakudo/moarvm.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/rakudo/moarvm.nix b/pkgs/development/interpreters/rakudo/moarvm.nix
index 08c225603eb3d..da7e66efff1bf 100644
--- a/pkgs/development/interpreters/rakudo/moarvm.nix
+++ b/pkgs/development/interpreters/rakudo/moarvm.nix
@@ -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 ''