postgis: make libiconv dependent on darwin

This commit is contained in:
Luke Worth 2019-07-27 19:43:31 +10:00
parent 330fff02a6
commit 7f54b9a2c6

View File

@ -23,7 +23,8 @@ stdenv.mkDerivation rec {
sha256 = "0pnva72f2w4jcgnl1y7nw5rdly4ipx3hji4c9yc9s0hna1n2ijxn";
};
buildInputs = [ libxml2 postgresql geos proj gdal json_c protobufc libiconv ];
buildInputs = [ libxml2 postgresql geos proj gdal json_c protobufc ]
++ stdenv.lib.optional stdenv.isDarwin libiconv;
nativeBuildInputs = [ perl pkgconfig ];
dontDisableStatic = true;