git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #54512 from vcunat/p/jemalloc-stripPrefix

jemalloc nitpick: better semantics for stripPrefix

commit328b0e49332d7e60c62535f489a16b13a625823a authorSilvan Mosberger <infinisil@icloud.com> dateThu 24 Jan 2019, 00:19 (8 years ago) parent7222fd9666870d
1 file changed+4−4
pkgs/development/libraries/jemalloc/common.nix+4−4
pkgs/development/libraries/jemalloc/common.nix+4−4
@@ -4,8 +4,8 @@
44# then stops downstream builds (mariadb in particular) from detecting it. This
55# option should remove the prefix and give us a working jemalloc.
66# Causes segfaults with some software (ex. rustc), but defaults to true for backward
7−# compatibility. Ignored on non OSX.
8−, stripPrefix ? true
7+# compatibility.
8+, stripPrefix ? stdenv.hostPlatform.isDarwin
99, disableInitExecTls ? false
1010}:
1111
@@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
2222
2323 # see the comment on stripPrefix
2424 configureFlags = []
25− ++ optional (stdenv.isDarwin && stripPrefix) [ "--with-jemalloc-prefix=" ]
26− ++ optional disableInitExecTls [ "--disable-initial-exec-tls" ]
25+ ++ optional stripPrefix "--with-jemalloc-prefix="
26+ ++ optional disableInitExecTls "--disable-initial-exec-tls"
2727 ;
2828
2929 doCheck = true;