From 794d422363312f6c6d5b09cef76a98d7e6bfee81 Mon Sep 17 00:00:00 2001 From: Diogo Correia Date: Thu, 7 Aug 2025 21:35:23 +0100 Subject: [PATCH] postgresqlPackages.pg_hll: fix build on pg18 PostgreSQL 18 adds the -Wmissing-variable-declarations flag by default, which makes this build fail. Ignoring this warning allows the build to succeed. --- pkgs/servers/sql/postgresql/ext/pg_hll.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/servers/sql/postgresql/ext/pg_hll.nix b/pkgs/servers/sql/postgresql/ext/pg_hll.nix index e63191a4a85f..bd3bd7bcdb09 100644 --- a/pkgs/servers/sql/postgresql/ext/pg_hll.nix +++ b/pkgs/servers/sql/postgresql/ext/pg_hll.nix @@ -16,6 +16,9 @@ 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"; + meta = { description = "HyperLogLog for PostgreSQL"; homepage = "https://github.com/citusdata/postgresql-hll";