Unverified Commit d3e80063 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #253152 from SuperSandro2000/psqlodbc

psqlodbc: 09.01.0200 -> 13.00.0000
parents e3954b3c af20d738
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -2,21 +2,25 @@

stdenv.mkDerivation rec {
  pname = "psqlodbc";
  version = "09.01.0200";
  version = "13.02.0000";

  src = fetchurl {
    url = "https://ftp.postgresql.org/pub/odbc/versions/src/${pname}-${version}.tar.gz";
    sha256 = "0b4w1ahfpp34jpscfk2kv9050lh3xl9pvcysqvaigkcd0vsk1hl9";
    url = "https://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-${version}.tar.gz";
    hash = "sha256-s5t+XEH9ZHXFUREvpyS/V8SkRhdexBiKkOKETMFhJYU=";
  };

  buildInputs = [ libiodbc postgresql openssl ];

  configureFlags = [ "--with-iodbc=${libiodbc}" ];
  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; [ ];
  };
}