···23stdenv.mkDerivation rec {
4 name = "jemalloc-${version}";
5- version = "4.5.0";
67 src = fetchurl {
8 url = "https://github.com/jemalloc/jemalloc/releases/download/${version}/${name}.tar.bz2";
9- sha256 = "9409d85664b4f135b77518b0b118c549009dc10f6cba14557d170476611f6780";
10 };
1112 # By default, jemalloc puts a je_ prefix onto all its symbols on OSX, which
13 # then stops downstream builds (mariadb in particular) from detecting it. This
14 # option should remove the prefix and give us a working jemalloc.
15- configureFlags = stdenv.lib.optional stdenv.isDarwin "--with-jemalloc-prefix=";
16-00017 doCheck = true;
18-1920 meta = with stdenv.lib; {
21 homepage = http://jemalloc.net;
···23stdenv.mkDerivation rec {
4 name = "jemalloc-${version}";
5+ version = "5.0.1";
67 src = fetchurl {
8 url = "https://github.com/jemalloc/jemalloc/releases/download/${version}/${name}.tar.bz2";
9+ sha256 = "4814781d395b0ef093b21a08e8e6e0bd3dab8762f9935bbfb71679b0dea7c3e9";
10 };
1112 # By default, jemalloc puts a je_ prefix onto all its symbols on OSX, which
13 # then stops downstream builds (mariadb in particular) from detecting it. This
14 # option should remove the prefix and give us a working jemalloc.
15+ configureFlags = stdenv.lib.optional stdenv.isDarwin "--with-jemalloc-prefix="
16+ # jemalloc is unable to correctly detect transparent hugepage support on
17+ # ARM (https://github.com/jemalloc/jemalloc/issues/526), and the default
18+ # kernel ARMv6/7 kernel does not enable it, so we explicitly disable support
19+ ++ stdenv.lib.optional stdenv.isArm "--disable-thp";
20 doCheck = true;
02122 meta = with stdenv.lib; {
23 homepage = http://jemalloc.net;