at master 36 lines 992 B view raw
1{ 2 fetchFromGitHub, 3 fetchpatch, 4 lib, 5 postgresql, 6 postgresqlBuildExtension, 7}: 8 9postgresqlBuildExtension (finalAttrs: { 10 pname = "pg_hll"; 11 version = "2.18"; 12 13 src = fetchFromGitHub { 14 owner = "citusdata"; 15 repo = "postgresql-hll"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-Latdxph1Ura8yKEokEjalJ+/GY+pAKOT3GXjuLprj6c="; 18 }; 19 20 patches = [ 21 (fetchpatch { 22 name = "fix-postgresql-18.patch"; 23 url = "https://github.com/citusdata/postgresql-hll/commit/f998e234653ea397ddddc1278d1c02d8d011bd16.patch"; 24 hash = "sha256-gF4f+B4Gu/QEyCGMfKLmRK6lNwgfd8lML55wMkhsSY4="; 25 }) 26 ]; 27 28 meta = { 29 description = "HyperLogLog for PostgreSQL"; 30 homepage = "https://github.com/citusdata/postgresql-hll"; 31 changelog = "https://github.com/citusdata/postgresql-hll/blob/v${finalAttrs.version}/CHANGELOG.md"; 32 maintainers = with lib.maintainers; [ thoughtpolice ]; 33 platforms = postgresql.meta.platforms; 34 license = lib.licenses.asl20; 35 }; 36})