Skip to content

Commit 4801d0c

Browse files
postgresql17Packages.{pg_cron,pg_hll}: fix build on x86_64-darwin
This fixes the following error: error: comparison of integers of different signs: 'ssize_t' (aka 'long') and 'const size_t' (aka 'const unsigned long') [-Werror,-Wsign-compare] if (part < iov[i].iov_len) ~~~~ ^ ~~~~~~~~~~~~~~
1 parent d1478e7 commit 4801d0c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/servers/sql/postgresql/generic.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ let
165165
src = ./patches/locale-binary-path.patch;
166166
locale = "${if stdenv.hostPlatform.isDarwin then darwin.adv_cmds else lib.getBin stdenv.cc.libc}/bin/locale";
167167
})
168+
] ++ lib.optionals (stdenv'.hostPlatform.isDarwin && atLeast "17") [
169+
# TODO: Remove this with the next set of minor releases
170+
(fetchpatch ({
171+
url = "https://github.com/postgres/postgres/commit/0a883a067bd78f0ff0607afb18c4f783ac764504.patch";
172+
hash = "sha256-F3zCaar6w6bwQDno7Tkg7ZbPJ+rhgi8/2NSvFakzQek=";
173+
}))
168174
] ++ lib.optionals (olderThan "17") [
169175
# TODO: Remove this with the next set of minor releases
170176
(fetchpatch (

0 commit comments

Comments
 (0)