Skip to content

Commit

Permalink
postgresql: refactor to simplify condition
Browse files Browse the repository at this point in the history
glibc is not available on darwin anyway and isGnu is just shorter.
  • Loading branch information
wolfgangwalther committed Jun 3, 2024
1 parent a2baf6c commit 471c7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/servers/sql/postgresql/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ let
remove-references-to -t "${llvmPackages.llvm.dev}" $out/lib/llvmjit.so
'';

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
Expand Down

0 comments on commit 471c7c7

Please sign in to comment.