rethinkdb: Force dynamic linking and allow dependency substitution

This commit is contained in:
William A. Kennington III 2015-07-27 17:35:05 -07:00
parent 0411a4c376
commit 5960a652f1

View File

@ -11,12 +11,21 @@ stdenv.mkDerivation rec {
sha256 = "19qhia4lfa8a0rzp2v6lnlxp2lf4z4vqhgfxnicfdnx07q4r847i";
};
postPatch = ''
# Remove the dependence on bundled libraries
sed -i '/must_fetch_list/ s/ v8//' configure
# Don't use the default command line args
rm configure.default
'';
preConfigure = ''
export ALLOW_WARNINGS=1
patchShebangs .
'';
configureFlags = [
"--dynamic=all"
"--with-jemalloc"
"--lib-path=${jemalloc}/lib"
];