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

wip/yesman
Will Dietz 6 years ago
parent d6b5ee8b5a
commit 81eef05f86
  1. 2
      pkgs/servers/sql/postgresql/default.nix

@ -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

Loading…
Cancel
Save