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