2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libiodbc, postgresql, openssl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "psqlodbc";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "16.00.0000";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
url = "https://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-${version}.tar.gz";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-r9iS+J0uzujT87IxTxvVvy0CIBhyxuNDHlwxCW7KTIs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libiodbc postgresql openssl ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-iodbc=${libiodbc}"
|
|
|
|
"--with-libpq=${lib.getDev postgresql}/bin/pg_config"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-30 08:33:03 +00:00
|
|
|
homepage = "https://odbc.postgresql.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "ODBC driver for PostgreSQL";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|