Files
nixpkgs/pkgs/servers/sql/postgresql/ext/pg_hll.nix
T
Wolfgang Walther 296f222cf8 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!
2025-09-04 10:48:14 +02:00

37 lines
992 B
Nix

{
fetchFromGitHub,
fetchpatch,
lib,
postgresql,
postgresqlBuildExtension,
}:
postgresqlBuildExtension (finalAttrs: {
pname = "pg_hll";
version = "2.18";
src = fetchFromGitHub {
owner = "citusdata";
repo = "postgresql-hll";
tag = "v${finalAttrs.version}";
hash = "sha256-Latdxph1Ura8yKEokEjalJ+/GY+pAKOT3GXjuLprj6c=";
};
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";
homepage = "https://github.com/citusdata/postgresql-hll";
changelog = "https://github.com/citusdata/postgresql-hll/blob/v${finalAttrs.version}/CHANGELOG.md";
maintainers = with lib.maintainers; [ thoughtpolice ];
platforms = postgresql.meta.platforms;
license = lib.licenses.asl20;
};
})