Skip to content

Commit 7e5b678

Browse files
jfrocheyvan-sraka
authored andcommitted
chore: replace (deprecated) substituteAll by replaceVars
1 parent 0ebf5d3 commit 7e5b678

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nix/postgresql/generic.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ let
2121
libxml2,
2222
tzdata,
2323
libkrb5,
24+
replaceVars,
2425
darwin,
2526
linux-pam,
2627
#orioledb specific
@@ -192,7 +193,10 @@ let
192193
./patches/paths-for-split-outputs.patch
193194
./patches/specify_pkglibdir_at_runtime.patch
194195
./patches/paths-with-postgresql-suffix.patch
195-
./patches/locale-binary-path.patch
196+
197+
(replaceVars ./patches/locale-binary-path.patch {
198+
locale = "${if stdenv.isDarwin then darwin.adv_cmds else lib.getBin stdenv.cc.libc}/bin/locale";
199+
})
196200
]
197201
++ lib.optionals stdenv'.hostPlatform.isMusl (
198202
# Using fetchurl instead of fetchpatch on purpose: https://github.com/NixOS/nixpkgs/issues/240141

0 commit comments

Comments
 (0)