31 lines
806 B
Nix
31 lines
806 B
Nix
{ stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pg_hll";
|
|
version = "2.14";
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "citusdata";
|
|
repo = "postgresql-hll";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "13vphxkc9pn4bkpgab560bgdbl99li2b3p1n2rm5a78wswlsbsps";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/{lib,share/postgresql/extension}
|
|
|
|
cp *.so $out/lib
|
|
cp *.sql $out/share/postgresql/extension
|
|
cp *.control $out/share/postgresql/extension
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "HyperLogLog for PostgreSQL";
|
|
homepage = "https://www.citusdata.com/";
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = licenses.asl20;
|
|
};
|
|
}
|