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 Jul 30, 2024
1 parent d7682f9 commit 2899878
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 @@ -237,7 +237,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
Expand Down

0 comments on commit 2899878

Please sign in to comment.