nixpkgs/pkgs/development/libraries/freetds/default.nix

35 lines
824 B
Nix
Raw Normal View History

{ stdenv, fetchurl
, odbcSupport ? false, unixODBC ? null }:
assert odbcSupport -> unixODBC != null;
2015-05-18 07:43:26 +01:00
stdenv.mkDerivation rec {
2015-07-27 17:42:41 +01:00
name = "freetds-0.91";
src = fetchurl {
2015-07-27 17:42:41 +01:00
url = "http://mirrors.ibiblio.org/freetds/stable/${name}.tar.gz";
sha256 = "0r946axzxs0czsmr7283w7vmk5jx3jnxxc32d2ncxsrsh2yli0ba";
};
hardeningDisable = [ "format" ];
2016-02-07 16:22:44 +00:00
buildInputs = stdenv.lib.optional odbcSupport [ unixODBC ];
configureFlags = stdenv.lib.optionalString odbcSupport "--with-odbc=${unixODBC}";
doDist = true;
distPhase = ''
touch $out/include/tds.h
touch $out/lib/libtds.a
'';
meta = {
description =
"Libraries to natively talk to Microsoft SQL Server and Sybase databases";
homepage = "http://www.freetds.org";
license = "lgpl";
platforms = stdenv.lib.platforms.all;
};
}