Skip to content

Commit 65cee89

Browse files
postgresqlPackages.citus: fix build on darwin
The build on darwin was broken for v16 and v17 only. This was fixed upstream a while ago, but somehow the fix has not been released, yet.
1 parent 259b4ff commit 65cee89

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pkgs/servers/sql/postgresql/ext/citus.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
curl,
33
fetchFromGitHub,
4+
fetchpatch,
45
lib,
56
lz4,
67
postgresql,
@@ -19,6 +20,16 @@ postgresqlBuildExtension rec {
1920
hash = "sha256-SuJs6OCHKO7efQagsATgn/V9rgMyuXQIHGCEP9ME7tQ=";
2021
};
2122

23+
patches = [
24+
# Even though this commit is on main since Sep 2023, it hasn't made its way to the release-13.0 branch, yet.
25+
# https://github.com/citusdata/citus/pull/7221
26+
# Fixes build for PG 16 + 17 on darwin
27+
(fetchpatch {
28+
url = "https://github.com/citusdata/citus/commit/0f28a69f12418d211ffba5f7ddd222fd0c47daeb.patch";
29+
hash = "sha256-8JAM+PUswzbdlAZUpRApgO0eBsMbUHFdFGsdATsG88I=";
30+
})
31+
];
32+
2233
buildInputs = [
2334
curl
2435
lz4

0 commit comments

Comments
 (0)