From 4d8242ed1b080b785441dacfe034636d561c684e Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 16 Mar 2025 20:57:43 +0100 Subject: [PATCH] postgresqlPackages.pg_topn: modernize --- pkgs/servers/sql/postgresql/ext/pg_topn.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/servers/sql/postgresql/ext/pg_topn.nix b/pkgs/servers/sql/postgresql/ext/pg_topn.nix index 3271c6ac7a68..a6ac3c5ea70e 100644 --- a/pkgs/servers/sql/postgresql/ext/pg_topn.nix +++ b/pkgs/servers/sql/postgresql/ext/pg_topn.nix @@ -1,9 +1,9 @@ { - lib, - stdenv, - fetchFromGitHub, - postgresql, buildPostgresqlExtension, + fetchFromGitHub, + lib, + postgresql, + stdenv, }: buildPostgresqlExtension rec { @@ -13,16 +13,16 @@ buildPostgresqlExtension rec { src = fetchFromGitHub { owner = "citusdata"; repo = "postgresql-topn"; - rev = "refs/tags/v${version}"; - sha256 = "sha256-lP6Iil/BUv4ga+co+oBpKv1FBqFuBGfNjueEolM6png="; + tag = "v${version}"; + hash = "sha256-lP6Iil/BUv4ga+co+oBpKv1FBqFuBGfNjueEolM6png="; }; - meta = with lib; { + meta = { description = "Efficient querying of 'top values' for PostgreSQL"; homepage = "https://github.com/citusdata/postgresql-topn"; changelog = "https://github.com/citusdata/postgresql-topn/raw/v${version}/CHANGELOG.md"; - maintainers = with maintainers; [ thoughtpolice ]; + maintainers = with lib.maintainers; [ thoughtpolice ]; platforms = postgresql.meta.platforms; - license = licenses.agpl3Only; + license = lib.licenses.agpl3Only; }; }