···2233stdenv.mkDerivation rec {
44 name = "jemalloc-${version}";
55- version = "4.5.0";
55+ version = "5.0.1";
6677 src = fetchurl {
88 url = "https://github.com/jemalloc/jemalloc/releases/download/${version}/${name}.tar.bz2";
99- sha256 = "9409d85664b4f135b77518b0b118c549009dc10f6cba14557d170476611f6780";
99+ sha256 = "4814781d395b0ef093b21a08e8e6e0bd3dab8762f9935bbfb71679b0dea7c3e9";
1010 };
11111212 # By default, jemalloc puts a je_ prefix onto all its symbols on OSX, which
1313 # then stops downstream builds (mariadb in particular) from detecting it. This
1414 # option should remove the prefix and give us a working jemalloc.
1515- configureFlags = stdenv.lib.optional stdenv.isDarwin "--with-jemalloc-prefix=";
1616-1515+ configureFlags = stdenv.lib.optional stdenv.isDarwin "--with-jemalloc-prefix="
1616+ # jemalloc is unable to correctly detect transparent hugepage support on
1717+ # ARM (https://github.com/jemalloc/jemalloc/issues/526), and the default
1818+ # kernel ARMv6/7 kernel does not enable it, so we explicitly disable support
1919+ ++ stdenv.lib.optional stdenv.isArm "--disable-thp";
1720 doCheck = true;
1818-19212022 meta = with stdenv.lib; {
2123 homepage = http://jemalloc.net;