postgresql: refactor to simplify condition

glibc is not available on darwin anyway and isGnu is just shorter.
This commit is contained in:
Wolfgang Walther 2024-06-01 17:32:35 +02:00
parent dfde86f738
commit 73cb40366d
No known key found for this signature in database
GPG Key ID: B39893FA5F65CAE1

View File

@ -224,7 +224,7 @@ let
remove-references-to -t ${llvmPackages.llvm.dev} "$out/lib/llvmjit${dlSuffix}"
'';
postFixup = lib.optionalString (!stdenv'.isDarwin && stdenv'.hostPlatform.libc == "glibc")
postFixup = lib.optionalString stdenv'.hostPlatform.isGnu
''
# initdb needs access to "locale" command from glibc.
wrapProgram $out/bin/initdb --prefix PATH ":" ${glibc.bin}/bin