Merge pull request #20684 from LumiGuide/fix-postgresql-osx

postgresql: fix build on darwin
This commit is contained in:
Daiderd Jordan
2016-11-24 12:03:09 +01:00
committed by GitHub

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