Unverified Commit 65cee89d authored by Wolfgang Walther's avatar Wolfgang Walther
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.
parent 259b4ff9
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
{
  curl,
  fetchFromGitHub,
  fetchpatch,
  lib,
  lz4,
  postgresql,
@@ -19,6 +20,16 @@ postgresqlBuildExtension rec {
    hash = "sha256-SuJs6OCHKO7efQagsATgn/V9rgMyuXQIHGCEP9ME7tQ=";
  };

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

  buildInputs = [
    curl
    lz4