1{ stdenv, fetchurl, boost, sqlite }:
2
3stdenv.mkDerivation rec {
4 name = "vsqlite-${version}";
5 version = "0.3.13";
6
7 src = fetchurl {
8 url = "http://evilissimo.fedorapeople.org/releases/vsqlite--/0.3.13/vsqlite++-${version}.tar.gz";
9 sha256 = "17fkj0d2jh0xkjpcayhs1xvbnh1d69f026i7vs1zqnbiwbkpz237";
10 };
11
12 buildInputs = [ boost sqlite ];
13
14 prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
15 substituteInPlace Makefile.in \
16 --replace '-Wl,--as-needed' "" \
17 --replace '-Wl,-soname -Wl,libvsqlitepp.so.3' \
18 "-Wl,-install_name,$out/lib/libvsqlitepp.3.dylib"
19 '';
20
21 meta = with stdenv.lib; {
22 homepage = http://vsqlite.virtuosic-bytes.com/;
23 description = "C++ wrapper library for sqlite.";
24 license = licenses.bsd3;
25 platforms = platforms.unix;
26 };
27}