From db0b636cffbcb5ab2fb424d53f429d3168839013 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 16 Mar 2025 20:29:44 +0100 Subject: [PATCH] postgresqlPackages.pg_hint_plan: modernize --- pkgs/servers/sql/postgresql/ext/pg_hint_plan.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/servers/sql/postgresql/ext/pg_hint_plan.nix b/pkgs/servers/sql/postgresql/ext/pg_hint_plan.nix index 20d31530164e..4f4e4ddd8882 100644 --- a/pkgs/servers/sql/postgresql/ext/pg_hint_plan.nix +++ b/pkgs/servers/sql/postgresql/ext/pg_hint_plan.nix @@ -1,9 +1,9 @@ { - lib, - stdenv, - fetchFromGitHub, - postgresql, buildPostgresqlExtension, + fetchFromGitHub, + lib, + postgresql, + stdenv, }: let @@ -44,7 +44,7 @@ buildPostgresqlExtension { src = fetchFromGitHub { owner = "ossc-db"; repo = "pg_hint_plan"; - rev = "REL${lib.versions.major postgresql.version}_${ + tag = "REL${lib.versions.major postgresql.version}_${ builtins.replaceStrings [ "." ] [ "_" ] source.version }"; inherit (source) hash; @@ -57,11 +57,11 @@ buildPostgresqlExtension { enableUpdateScript = false; - meta = with lib; { + meta = { description = "Extension to tweak PostgreSQL execution plans using so-called 'hints' in SQL comments"; homepage = "https://github.com/ossc-db/pg_hint_plan"; - maintainers = with maintainers; [ _1000101 ]; + maintainers = with lib.maintainers; [ _1000101 ]; platforms = postgresql.meta.platforms; - license = licenses.bsd3; + license = lib.licenses.bsd3; }; }