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";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.4.15";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.freetds.org/files/stable/${pname}-${version}.tar.bz2";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-32GhThVaLjIkCfHAaPWtZjZJ8Cmk7LM6KEHxVSYIrEg=";
|
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";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/FreeTDS/freetds/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|