Skip to content

Commit

Permalink
vsqlite: fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
LnL7 committed Sep 21, 2017
1 parent 1ae204d commit bafb9c4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pkgs/development/libraries/vsqlite/default.nix
Expand Up @@ -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;
};
}

0 comments on commit bafb9c4

Please sign in to comment.