From 494501473064537488e9391b3df03b4a8769d110 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 16 Mar 2025 20:55:49 +0100 Subject: [PATCH] postgresqlPackages.pg_repack: modernize --- pkgs/servers/sql/postgresql/ext/pg_repack.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/servers/sql/postgresql/ext/pg_repack.nix b/pkgs/servers/sql/postgresql/ext/pg_repack.nix index 388a82cb29cb..8368b2ffd672 100644 --- a/pkgs/servers/sql/postgresql/ext/pg_repack.nix +++ b/pkgs/servers/sql/postgresql/ext/pg_repack.nix @@ -1,12 +1,12 @@ { - lib, - stdenv, + buildPostgresqlExtension, fetchFromGitHub, + gitUpdater, + lib, postgresql, postgresqlTestExtension, + stdenv, testers, - buildPostgresqlExtension, - gitUpdater, }: buildPostgresqlExtension (finalAttrs: { @@ -18,8 +18,8 @@ buildPostgresqlExtension (finalAttrs: { src = fetchFromGitHub { owner = "reorg"; repo = "pg_repack"; - rev = "ver_${finalAttrs.version}"; - sha256 = "sha256-wfjiLkx+S3zVrAynisX1GdazueVJ3EOwQEPcgUQt7eA="; + tag = "ver_${finalAttrs.version}"; + hash = "sha256-wfjiLkx+S3zVrAynisX1GdazueVJ3EOwQEPcgUQt7eA="; }; passthru.updateScript = gitUpdater { @@ -36,7 +36,7 @@ buildPostgresqlExtension (finalAttrs: { }; }; - meta = with lib; { + meta = { description = "Reorganize tables in PostgreSQL databases with minimal locks"; longDescription = '' pg_repack is a PostgreSQL extension which lets you remove bloat from tables and indexes, and optionally restore @@ -45,8 +45,8 @@ buildPostgresqlExtension (finalAttrs: { with performance comparable to using CLUSTER directly. ''; homepage = "https://github.com/reorg/pg_repack"; - license = licenses.bsd3; - maintainers = with maintainers; [ danbst ]; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ danbst ]; inherit (postgresql.meta) platforms; mainProgram = "pg_repack"; };