e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
26 lines
707 B
Nix
26 lines
707 B
Nix
{ lib, stdenv, fetchurl, libiodbc, postgresql, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "psqlodbc";
|
|
version = "16.00.0000";
|
|
|
|
src = fetchurl {
|
|
url = "https://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-${version}.tar.gz";
|
|
hash = "sha256-r9iS+J0uzujT87IxTxvVvy0CIBhyxuNDHlwxCW7KTIs=";
|
|
};
|
|
|
|
buildInputs = [ libiodbc postgresql openssl ];
|
|
|
|
configureFlags = [
|
|
"--with-iodbc=${libiodbc}"
|
|
"--with-libpq=${lib.getDev postgresql}/bin/pg_config"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://odbc.postgresql.org/";
|
|
description = "ODBC driver for PostgreSQL";
|
|
license = licenses.lgpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|