python3Packages.psycopg: use proper shared library extension

Closes: #185918
This commit is contained in:
Martin Weinelt 2022-08-13 23:31:32 +02:00
parent 1fc66678fc
commit 999916d802
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchurl
@ -59,7 +60,7 @@ buildPythonPackage {
patches = [
(substituteAll {
src = ./libpq.patch;
libpq = "${postgresql.lib}/lib/libpq.so";
libpq = "${postgresql.lib}/lib/libpq${stdenv.hostPlatform.extensions.sharedLibrary}";
})
];