at 23.11-beta 30 lines 907 B view raw
1{ lib, stdenv, fetchFromGitHub, postgresql }: 2 3stdenv.mkDerivation rec { 4 pname = "pg_hll"; 5 version = "2.18"; 6 7 buildInputs = [ postgresql ]; 8 9 src = fetchFromGitHub { 10 owner = "citusdata"; 11 repo = "postgresql-hll"; 12 rev = "refs/tags/v${version}"; 13 hash = "sha256-Latdxph1Ura8yKEokEjalJ+/GY+pAKOT3GXjuLprj6c="; 14 }; 15 16 installPhase = '' 17 install -D -t $out/lib hll${postgresql.dlSuffix} 18 install -D -t $out/share/postgresql/extension *.sql 19 install -D -t $out/share/postgresql/extension *.control 20 ''; 21 22 meta = with lib; { 23 description = "HyperLogLog for PostgreSQL"; 24 homepage = "https://github.com/citusdata/postgresql-hll"; 25 changelog = "https://github.com/citusdata/postgresql-hll/blob/v${version}/CHANGELOG.md"; 26 maintainers = with maintainers; [ thoughtpolice ]; 27 platforms = postgresql.meta.platforms; 28 license = licenses.asl20; 29 }; 30}