Allow to configure freetds for unixODBC support
This commit is contained in:
parent
40979710f7
commit
fd9527eb24
@ -1,4 +1,7 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl
|
||||||
|
, odbcSupport ? false, unixODBC ? null }:
|
||||||
|
|
||||||
|
assert odbcSupport -> unixODBC != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "freetds-0.91";
|
name = "freetds-0.91";
|
||||||
@ -8,6 +11,10 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "0r946axzxs0czsmr7283w7vmk5jx3jnxxc32d2ncxsrsh2yli0ba";
|
sha256 = "0r946axzxs0czsmr7283w7vmk5jx3jnxxc32d2ncxsrsh2yli0ba";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optional odbcSupport [ unixODBC ];
|
||||||
|
|
||||||
|
configureFlags = stdenv.lib.optionalString odbcSupport "--with-odbc=${unixODBC}";
|
||||||
|
|
||||||
doDist = true;
|
doDist = true;
|
||||||
|
|
||||||
distPhase = ''
|
distPhase = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user