Skip to content

Commit fd88452

Browse files
committed
feat: make sure macos needed support included
1 parent 9481589 commit fd88452

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flake.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@
301301
path = ./ansible/files/postgresql_config/pg_ident.conf.j2;
302302
};
303303
getkeyScript = ./nix/tests/util/pgsodium_getkey.sh;
304-
localeArchive = "${pkgs.glibcLocales}/lib/locale/locale-archive";
304+
localeArchive = if pkgs.stdenv.isDarwin
305+
then "${pkgs.darwin.locale}/share/locale"
306+
else "${pkgs.glibcLocales}/lib/locale/locale-archive";
305307
in
306308
pkgs.runCommand "start-postgres-server" { } ''
307309
mkdir -p $out/bin $out/etc/postgresql-custom $out/etc/postgresql

0 commit comments

Comments
 (0)