From b94c892137c70802a4dd3f0f21d3753c889e1185 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Sat, 6 Jan 2018 17:22:14 +0100 Subject: [PATCH] jemalloc: add patch to fix aarch64 build --- pkgs/development/libraries/jemalloc/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/jemalloc/default.nix b/pkgs/development/libraries/jemalloc/default.nix index d11ec0a78236..0882431cc15b 100644 --- a/pkgs/development/libraries/jemalloc/default.nix +++ b/pkgs/development/libraries/jemalloc/default.nix @@ -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";