296f222cf8
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!
37 lines
992 B
Nix
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;
|
|
};
|
|
})
|