postgresql: refactor to simplify condition
glibc is not available on darwin anyway and isGnu is just shorter.
This commit is contained in:
parent
dfde86f738
commit
73cb40366d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user