postgresql: fix build on darwin

This commit is contained in:
Bas van Dijk 2016-11-24 09:56:12 +01:00
parent 61f38b9e83
commit 1f95524ab5

View File

@ -58,7 +58,7 @@ let
substituteInPlace "$out/lib/pgxs/src/Makefile.global" --replace ${stdenv.cc}/bin/ld ld
'';
postFixup =
postFixup = lib.optionalString (!stdenv.isDarwin)
''
# initdb needs access to "locale" command from glibc.
wrapProgram $out/bin/initdb --prefix PATH ":" ${glibc.bin}/bin