From df8580dc6f2078eeb5c46027b0102dac2d5634fc Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 5 May 2025 16:37:46 +0200 Subject: [PATCH] pgbackrest: modernize --- pkgs/by-name/pg/pgbackrest/package.nix | 46 +++++++++++++------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/pkgs/by-name/pg/pgbackrest/package.nix b/pkgs/by-name/pg/pgbackrest/package.nix index 9a9be35d2982..da6634889d89 100644 --- a/pkgs/by-name/pg/pgbackrest/package.nix +++ b/pkgs/by-name/pg/pgbackrest/package.nix @@ -1,31 +1,31 @@ { - lib, - stdenv, - fetchFromGitHub, - meson, - ninja, - python3, - pkg-config, - libbacktrace, bzip2, - lz4, + fetchFromGitHub, + lib, + libbacktrace, libpq, + libssh2, libxml2, libyaml, + lz4, + meson, + ninja, + pkg-config, + python3, + stdenv, zlib, - libssh2, zstd, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "pgbackrest"; version = "2.55.1"; src = fetchFromGitHub { owner = "pgbackrest"; repo = "pgbackrest"; - rev = "release/${version}"; - sha256 = "sha256-A1dTywcCHBu7Ml0Q9k//VVPFN1C3kmmMkq4ok9T4g94="; + tag = "release/${finalAttrs.version}"; + hash = "sha256-A1dTywcCHBu7Ml0Q9k//VVPFN1C3kmmMkq4ok9T4g94="; }; strictDeps = true; @@ -33,28 +33,28 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ meson ninja - python3 pkg-config + python3 ]; buildInputs = [ - libbacktrace bzip2 - lz4 + libbacktrace libpq + libssh2 libxml2 libyaml + lz4 zlib - libssh2 zstd ]; - meta = with lib; { + meta = { description = "Reliable PostgreSQL backup & restore"; - homepage = "https://pgbackrest.org/"; - changelog = "https://github.com/pgbackrest/pgbackrest/releases"; - license = licenses.mit; + homepage = "https://pgbackrest.org"; + changelog = "https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F${finalAttrs.version}"; + license = lib.licenses.mit; mainProgram = "pgbackrest"; - maintainers = with maintainers; [ zaninime ]; + maintainers = with lib.maintainers; [ zaninime ]; }; -} +})