postgis: fix build after output splits
Fixes #15236 Two changes were needed: - pg_config from postgresql package wasn't reporting the correct location for the pgxs extension system, after the output split - json_c is now split in dev and out outputs, postgis configure doesn't find the library location properly Closes #15470
This commit is contained in:
committed by
Joachim Fasting
parent
577d999ea6
commit
edaecb41db
@@ -89,6 +89,10 @@ in rec {
|
||||
sha256 = "02gsi1cm63kf0r7881444lrkzdjqhhpz9a5zav3al0q24nq01r8g";
|
||||
sql_srcs = ["postgis.sql" "spatial_ref_sys.sql"];
|
||||
builtInputs = [gdal json_c pkgconfig];
|
||||
|
||||
# postgis config directory assumes /include /lib from the same root for json-c library
|
||||
NIX_LDFLAGS = "-L${stdenv.lib.getLib json_c}/lib";
|
||||
|
||||
dontDisableStatic = true;
|
||||
preConfigure = ''
|
||||
sed -i 's@/usr/bin/file@${file}/bin/file@' configure
|
||||
|
||||
Reference in New Issue
Block a user