diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-12-13 07:27:59 -0500 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-12-13 07:27:59 -0500 |
commit | 6bda212f691a94f5b16385a432e86b9e0c98cbf5 (patch) | |
tree | 0db3b0700678e4dadbb7618117dc10746a90b662 /pkgs/development/libraries/jemalloc | |
parent | f10e8df3b91be91e8f9c0ae939f44835a0e0a219 (diff) | |
download | nixpkgs-6bda212f691a94f5b16385a432e86b9e0c98cbf5.tar nixpkgs-6bda212f691a94f5b16385a432e86b9e0c98cbf5.tar.gz nixpkgs-6bda212f691a94f5b16385a432e86b9e0c98cbf5.tar.bz2 nixpkgs-6bda212f691a94f5b16385a432e86b9e0c98cbf5.tar.lz nixpkgs-6bda212f691a94f5b16385a432e86b9e0c98cbf5.tar.xz nixpkgs-6bda212f691a94f5b16385a432e86b9e0c98cbf5.tar.zst nixpkgs-6bda212f691a94f5b16385a432e86b9e0c98cbf5.zip |
jemalloc: fix darwin build
Diffstat (limited to 'pkgs/development/libraries/jemalloc')
-rw-r--r-- | pkgs/development/libraries/jemalloc/common.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/libraries/jemalloc/common.nix b/pkgs/development/libraries/jemalloc/common.nix index d5fe07b00f2..5abde13a2e6 100644 --- a/pkgs/development/libraries/jemalloc/common.nix +++ b/pkgs/development/libraries/jemalloc/common.nix @@ -1,5 +1,6 @@ { version, sha256 }: { lib, stdenv, fetchurl +, fetchpatch # By default, jemalloc puts a je_ prefix onto all its symbols on OSX, which # then stops downstream builds (mariadb in particular) from detecting it. This # option should remove the prefix and give us a working jemalloc. @@ -20,6 +21,14 @@ stdenv.mkDerivation rec { inherit sha256; }; + patches = [ + # workaround https://github.com/jemalloc/jemalloc/issues/2091 + (fetchpatch { + url = "https://github.com/jemalloc/jemalloc/commit/3b4a03b92b2e415415a08f0150fdb9eeb659cd52.diff"; + sha256 = "sha256-6AYtADREhfj93ZLk9xnXtjc6vHDU0EKLLOvLd6YdJeI="; + }) + ]; + # see the comment on stripPrefix configureFlags = [] ++ optional stripPrefix "--with-jemalloc-prefix=" |