1{
2 fetchFromGitHub,
3 lib,
4 postgresql,
5 postgresqlBuildExtension,
6}:
7
8postgresqlBuildExtension rec {
9 pname = "pg_topn";
10 version = "2.7.0";
11
12 src = fetchFromGitHub {
13 owner = "citusdata";
14 repo = "postgresql-topn";
15 tag = "v${version}";
16 hash = "sha256-lP6Iil/BUv4ga+co+oBpKv1FBqFuBGfNjueEolM6png=";
17 };
18
19 meta = {
20 description = "Efficient querying of 'top values' for PostgreSQL";
21 homepage = "https://github.com/citusdata/postgresql-topn";
22 changelog = "https://github.com/citusdata/postgresql-topn/raw/v${version}/CHANGELOG.md";
23 maintainers = with lib.maintainers; [ thoughtpolice ];
24 platforms = postgresql.meta.platforms;
25 license = lib.licenses.agpl3Only;
26 };
27}