jemalloc: add patch to fix aarch64 build

This commit is contained in:
Robin Gloster 2018-01-06 17:22:14 +01:00
parent 3a5c489603
commit b94c892137
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, fetchpatch }:
stdenv.mkDerivation rec {
name = "jemalloc-${version}";
@ -19,6 +19,13 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optional stdenv.isArm "--disable-thp";
doCheck = true;
patches = stdenv.lib.optional stdenv.isAarch64 (fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/jemalloc/jemalloc/pull/1035.patch";
sha256 = "02y0q3dp253bipxv4r954nqipbjbj92p6ww9bx5bk3d8pa81wkqq";
});
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = http://jemalloc.net;
description = "General purpose malloc(3) implementation";