From 638f4bf12179a025856f29a512252bc04370c736 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Thu, 12 Jun 2008 15:54:57 +0000 Subject: [PATCH] unixODBC sqlite support svn path=/nixpkgs/trunk/; revision=12059 --- .../libraries/unixODBCDrivers/default.nix | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pkgs/development/libraries/unixODBCDrivers/default.nix b/pkgs/development/libraries/unixODBCDrivers/default.nix index 8072e9cedfc7..421843b27372 100644 --- a/pkgs/development/libraries/unixODBCDrivers/default.nix +++ b/pkgs/development/libraries/unixODBCDrivers/default.nix @@ -77,4 +77,27 @@ args : with args; "CPReuse = \n" + "FileUsage = 3\n "; }; + sqlite = rec { + deriv = stdenv.mkDerivation { + name = "sqlite-connector-odbc-3.51.12"; + src = fetchurl { + url = http://www.ch-werner.de/sqliteodbc/sqliteodbc-0.70.tar.gz; + sha256 = "0ysyqdqkxqcqxrxgi15cbrzia9z6yalim5c88faad85bwanx4db8"; + }; + configureFlags = "--with-sqlite3=${sqlite} --with-odbc=${unixODBC}"; + postInstall = ''mkdir lib; mv $out/* lib; mv lib $out''; + buildInputs = [libtool zlib sqlite]; + meta = { + description = "sqlite odbc connector, install using configuration.nix"; + homepage = http://www.ch-werner.de/sqliteodbc/html/index.html; + license = "BSD"; + }; + }; + ini = + "[SQLite]\n" + + "Description = SQLite ODBC Driver\n" + + "Driver = ${deriv}/lib/libsqlite3odbc.so\n" + + "Setup = ${deriv}/lib/libsqlite3odbc.so\n" + + "Threading = 2\n"; + }; }