2014-10-29 05:04:12 +01:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, odbcSupport ? false, unixODBC ? null }:
|
|
|
|
|
|
|
|
assert odbcSupport -> unixODBC != null;
|
2011-11-10 23:20:48 +01:00
|
|
|
|
2015-05-18 08:43:26 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2015-07-27 18:42:41 +02:00
|
|
|
name = "freetds-0.91";
|
2011-11-10 23:20:48 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-07-27 18:42:41 +02:00
|
|
|
url = "http://mirrors.ibiblio.org/freetds/stable/${name}.tar.gz";
|
|
|
|
sha256 = "0r946axzxs0czsmr7283w7vmk5jx3jnxxc32d2ncxsrsh2yli0ba";
|
2011-11-10 23:20:48 +01:00
|
|
|
};
|
|
|
|
|
2014-10-29 05:04:12 +01:00
|
|
|
buildInputs = stdenv.lib.optional odbcSupport [ unixODBC ];
|
|
|
|
|
|
|
|
configureFlags = stdenv.lib.optionalString odbcSupport "--with-odbc=${unixODBC}";
|
|
|
|
|
2014-06-11 12:58:40 +02:00
|
|
|
doDist = true;
|
|
|
|
|
|
|
|
distPhase = ''
|
|
|
|
touch $out/include/tds.h
|
|
|
|
touch $out/lib/libtds.a
|
|
|
|
'';
|
|
|
|
|
2011-11-10 23:20:48 +01:00
|
|
|
meta = {
|
2011-11-14 21:27:09 +01:00
|
|
|
description =
|
|
|
|
"Libraries to natively talk to Microsoft SQL Server and Sybase databases";
|
2011-11-10 23:20:48 +01:00
|
|
|
homepage = "http://www.freetds.org";
|
|
|
|
license = "lgpl";
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|