git.iko.soy/typeable/nixpkgs
on master help sign in
jemalloc nitpick: better semantics for stripPrefix
commit666870d81320f2f733af28d97a860888a27039f0 authorVladimír Čunát <vcunat@gmail.com> dateWed 23 Jan 2019, 21:01 (8 years ago) parentb3eaad9
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;