postgresql: don't try to use 'locale' if not building to run on glibc

This commit is contained in:
Will Dietz 2018-01-11 22:27:55 -06:00
parent d6b5ee8b5a
commit 81eef05f86

View file

@ -69,7 +69,7 @@ let
fi
'';
postFixup = lib.optionalString (!stdenv.isDarwin)
postFixup = lib.optionalString (!stdenv.isDarwin && stdenv.hostPlatform.libc == "glibc")
''
# initdb needs access to "locale" command from glibc.
wrapProgram $out/bin/initdb --prefix PATH ":" ${glibc.bin}/bin