diff options
author | Dmitry Belyaev <be.dmitry@gmail.com> | 2014-10-29 15:04:12 +1100 |
---|---|---|
committer | Dmitry Belyaev <be.dmitry@gmail.com> | 2014-10-29 15:18:11 +1100 |
commit | fd9527eb2432524f24e178b9838c61d69c5742d4 (patch) | |
tree | 505b4fc25b952c8a8d03183a3bed9d1ccbe9b29b /pkgs/development/libraries/freetds | |
parent | 40979710f72278e653bb0be2828a581a18b6c902 (diff) | |
download | nixpkgs-fd9527eb2432524f24e178b9838c61d69c5742d4.tar nixpkgs-fd9527eb2432524f24e178b9838c61d69c5742d4.tar.gz nixpkgs-fd9527eb2432524f24e178b9838c61d69c5742d4.tar.bz2 nixpkgs-fd9527eb2432524f24e178b9838c61d69c5742d4.tar.lz nixpkgs-fd9527eb2432524f24e178b9838c61d69c5742d4.tar.xz nixpkgs-fd9527eb2432524f24e178b9838c61d69c5742d4.tar.zst nixpkgs-fd9527eb2432524f24e178b9838c61d69c5742d4.zip |
Allow to configure freetds for unixODBC support
Diffstat (limited to 'pkgs/development/libraries/freetds')
-rw-r--r-- | pkgs/development/libraries/freetds/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/libraries/freetds/default.nix b/pkgs/development/libraries/freetds/default.nix index 547e9e813be..3980c5b61b3 100644 --- a/pkgs/development/libraries/freetds/default.nix +++ b/pkgs/development/libraries/freetds/default.nix @@ -1,4 +1,7 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl +, odbcSupport ? false, unixODBC ? null }: + +assert odbcSupport -> unixODBC != null; stdenv.mkDerivation { name = "freetds-0.91"; @@ -8,6 +11,10 @@ stdenv.mkDerivation { sha256 = "0r946axzxs0czsmr7283w7vmk5jx3jnxxc32d2ncxsrsh2yli0ba"; }; + buildInputs = stdenv.lib.optional odbcSupport [ unixODBC ]; + + configureFlags = stdenv.lib.optionalString odbcSupport "--with-odbc=${unixODBC}"; + doDist = true; distPhase = '' |