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