summary refs log tree commit diff
diff options
context:
space:
mode:
authorlethalman <lucabru@src.gnome.org>2014-10-29 10:31:50 +0100
committerlethalman <lucabru@src.gnome.org>2014-10-29 10:31:50 +0100
commit69582f071caccfd58056eb8891c82e0f7442c0e1 (patch)
treeef56d84726b757fc987ddc87b2ced3e31ce6fab6
parentf7f7a0d0f4cc663804922b5dfeb8807856c25ea1 (diff)
parentfd9527eb2432524f24e178b9838c61d69c5742d4 (diff)
downloadnixlib-69582f071caccfd58056eb8891c82e0f7442c0e1.tar
nixlib-69582f071caccfd58056eb8891c82e0f7442c0e1.tar.gz
nixlib-69582f071caccfd58056eb8891c82e0f7442c0e1.tar.bz2
nixlib-69582f071caccfd58056eb8891c82e0f7442c0e1.tar.lz
nixlib-69582f071caccfd58056eb8891c82e0f7442c0e1.tar.xz
nixlib-69582f071caccfd58056eb8891c82e0f7442c0e1.tar.zst
nixlib-69582f071caccfd58056eb8891c82e0f7442c0e1.zip
Merge pull request #4715 from RumataEstor/freetds-odbc
Allow to configure freetds for unixODBC support
-rw-r--r--pkgs/development/libraries/freetds/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/libraries/freetds/default.nix b/pkgs/development/libraries/freetds/default.nix
index 547e9e813be1..3980c5b61b31 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 = ''