vsqlite: fix darwin build

This commit is contained in:
Daiderd Jordan 2017-09-21 21:10:03 +02:00
parent 1ae204d2fa
commit bafb9c4d50
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -11,10 +11,17 @@ stdenv.mkDerivation rec {
buildInputs = [ boost sqlite ];
meta = {
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile.in \
--replace '-Wl,--as-needed' "" \
--replace '-Wl,-soname -Wl,libvsqlitepp.so.3' \
"-Wl,-install_name,$out/lib/libvsqlitepp.3.dylib"
'';
meta = with stdenv.lib; {
homepage = http://vsqlite.virtuosic-bytes.com/;
description = "C++ wrapper library for sqlite.";
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.unix;
license = licenses.bsd3;
platforms = platforms.unix;
};
}