diff options
author | Sebastián Bernardo Galkin <paraseba@gmail.com> | 2016-05-14 17:37:10 -0700 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2016-05-15 11:49:59 +0200 |
commit | edaecb41db05b512614ca0be10782790ea86a149 (patch) | |
tree | 9876a31f32d8f0c408a446ab44f36d37cfbf9eb0 /pkgs/development | |
parent | 577d999ea6324da3f2d017101bd1d2aff442f587 (diff) | |
download | nixpkgs-edaecb41db05b512614ca0be10782790ea86a149.tar nixpkgs-edaecb41db05b512614ca0be10782790ea86a149.tar.gz nixpkgs-edaecb41db05b512614ca0be10782790ea86a149.tar.bz2 nixpkgs-edaecb41db05b512614ca0be10782790ea86a149.tar.lz nixpkgs-edaecb41db05b512614ca0be10782790ea86a149.tar.xz nixpkgs-edaecb41db05b512614ca0be10782790ea86a149.tar.zst nixpkgs-edaecb41db05b512614ca0be10782790ea86a149.zip |
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
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/postgis/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/postgis/default.nix b/pkgs/development/libraries/postgis/default.nix index 5f41eb61c29..f3e2312f484 100644 --- a/pkgs/development/libraries/postgis/default.nix +++ b/pkgs/development/libraries/postgis/default.nix @@ -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 |