summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkgs/servers/sql/postgresql/ext/postgis.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/servers/sql/postgresql/ext/postgis.nix b/pkgs/servers/sql/postgresql/ext/postgis.nix
index 67f7b520b898..fe6319d44f20 100644
--- a/pkgs/servers/sql/postgresql/ext/postgis.nix
+++ b/pkgs/servers/sql/postgresql/ext/postgis.nix
@@ -31,7 +31,10 @@ stdenv.mkDerivation rec {
dontDisableStatic = true;
# postgis config directory assumes /include /lib from the same root for json-c library
- NIX_LDFLAGS = "-L${lib.getLib json_c}/lib";
+ NIX_LDFLAGS = "-L${lib.getLib json_c}/lib"
+ # Work around https://github.com/NixOS/nixpkgs/issues/166205.
+ + lib.optionalString (stdenv.cc.isClang && stdenv.cc.libcxx != null) " -l${stdenv.cc.libcxx.cxxabi.libName}";
+
preConfigure = ''
sed -i 's@/usr/bin/file@${file}/bin/file@' configure