2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, openssl
|
|
|
|
, odbcSupport ? true, unixODBC ? null }:
|
|
|
|
|
|
|
|
assert odbcSupport -> unixODBC != null;
|
|
|
|
|
|
|
|
# Work is in progress to move to cmake so revisit that later
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "freetds";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.freetds.org/files/stable/${pname}-${version}.tar.bz2";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "0nilqf3cssi6z8bxxpmc7zxsh7apgwmx8mm7nfc6c5d40z3nyjpk";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optional odbcSupport unixODBC;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Libraries to natively talk to Microsoft SQL Server and Sybase databases";
|
|
|
|
homepage = "https://www.freetds.org";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|