Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 27 lines 799 B view raw
1{ lib, stdenv, fetchurl, boost, sqlite }: 2 3stdenv.mkDerivation rec { 4 pname = "vsqlite"; 5 version = "0.3.13"; 6 7 src = fetchurl { 8 url = "https://evilissimo.fedorapeople.org/releases/vsqlite--/0.3.13/vsqlite++-${version}.tar.gz"; 9 sha256 = "17fkj0d2jh0xkjpcayhs1xvbnh1d69f026i7vs1zqnbiwbkpz237"; 10 }; 11 12 buildInputs = [ boost sqlite ]; 13 14 prePatch = 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 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}