diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/sql/postgresql/ext/pg_hll.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/sql/postgresql/ext/pg_hll.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/sql/postgresql/ext/pg_hll.nix b/nixpkgs/pkgs/servers/sql/postgresql/ext/pg_hll.nix new file mode 100644 index 000000000000..a60601aef569 --- /dev/null +++ b/nixpkgs/pkgs/servers/sql/postgresql/ext/pg_hll.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub, postgresql }: + +stdenv.mkDerivation rec { + pname = "pg_hll"; + version = "2.18"; + + buildInputs = [ postgresql ]; + + src = fetchFromGitHub { + owner = "citusdata"; + repo = "postgresql-hll"; + rev = "refs/tags/v${version}"; + hash = "sha256-Latdxph1Ura8yKEokEjalJ+/GY+pAKOT3GXjuLprj6c="; + }; + + installPhase = '' + install -D -t $out/lib hll${postgresql.dlSuffix} + install -D -t $out/share/postgresql/extension *.sql + install -D -t $out/share/postgresql/extension *.control + ''; + + meta = with lib; { + description = "HyperLogLog for PostgreSQL"; + homepage = "https://github.com/citusdata/postgresql-hll"; + changelog = "https://github.com/citusdata/postgresql-hll/blob/v${version}/CHANGELOG.md"; + maintainers = with maintainers; [ thoughtpolice ]; + platforms = postgresql.meta.platforms; + license = licenses.asl20; + }; +} |