File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 21
21
libxml2 ,
22
22
tzdata ,
23
23
libkrb5 ,
24
- substituteAll ,
25
24
darwin ,
26
25
linux-pam ,
27
26
#orioledb specific
187
186
./patches/paths-for-split-outputs.patch
188
187
./patches/specify_pkglibdir_at_runtime.patch
189
188
./patches/paths-with-postgresql-suffix.patch
190
-
191
- ( substituteAll {
192
- src = ./patches/locale-binary-path.patch ;
193
- locale = "${ if stdenv . isDarwin then darwin . adv_cmds else lib . getBin stdenv . cc . libc } /bin/locale" ;
194
- } )
189
+ ./patches/locale-binary-path.patch
195
190
]
196
191
++ lib . optionals stdenv' . hostPlatform . isMusl (
197
192
# Using fetchurl instead of fetchpatch on purpose: https://github.com/NixOS/nixpkgs/issues/240141
207
202
''
208
203
# Hardcode the path to pgxs so pg_config returns the path in $out
209
204
substituteInPlace "src/common/config_info.c" --subst-var out
205
+ substituteInPlace "src/backend/commands/collationcmds.c" --replace-fail '@locale@' '${
206
+ if stdenv . isDarwin then darwin . adv_cmds else lib . getBin stdenv . cc . libc
207
+ } /bin/locale'
210
208
''
211
209
+ lib . optionalString jitSupport ''
212
210
# Force lookup of jit stuff in $out instead of $lib
You can’t perform that action at this time.
0 commit comments