Unverified Commit 296f222c authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

postgresql18Packages.pg_hll: fix on darwin

Disabling the `missing-variable-declarations` warning only was part of
the solution, it didn't fix darwin builds. Applying upstream's patch
fixes it on all platforms. It will also warn us via build failure when
this isn't needed anymore. Win-win!
parent ae563740
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
{
  fetchFromGitHub,
  fetchpatch,
  lib,
  postgresql,
  postgresqlBuildExtension,
@@ -16,8 +17,13 @@ postgresqlBuildExtension (finalAttrs: {
    hash = "sha256-Latdxph1Ura8yKEokEjalJ+/GY+pAKOT3GXjuLprj6c=";
  };

  # https://github.com/citusdata/postgresql-hll/issues/166#issuecomment-3165489050
  NIX_CFLAGS_COMPILE = "-Wno-error=missing-variable-declarations";
  patches = [
    (fetchpatch {
      name = "fix-postgresql-18.patch";
      url = "https://github.com/citusdata/postgresql-hll/commit/f998e234653ea397ddddc1278d1c02d8d011bd16.patch";
      hash = "sha256-gF4f+B4Gu/QEyCGMfKLmRK6lNwgfd8lML55wMkhsSY4=";
    })
  ];

  meta = {
    description = "HyperLogLog for PostgreSQL";