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-08-23 21:37:49 +02:00
parent dfde86f738
commit 73cb40366d
+1 -1
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