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

+1 -1
+1 -1
pkgs/servers/sql/postgresql/default.nix
··· 69 69 fi 70 70 ''; 71 71 72 - postFixup = lib.optionalString (!stdenv.isDarwin) 72 + postFixup = lib.optionalString (!stdenv.isDarwin && stdenv.hostPlatform.libc == "glibc") 73 73 '' 74 74 # initdb needs access to "locale" command from glibc. 75 75 wrapProgram $out/bin/initdb --prefix PATH ":" ${glibc.bin}/bin