From ed3789c02b5eb3544af1ad6e1ecd1ea702e9f507 Mon Sep 17 00:00:00 2001 From: emaryn Date: Tue, 22 Apr 2025 06:00:15 +0800 Subject: [PATCH] duply: 2.4 -> 2.5.5 --- pkgs/by-name/du/duply/package.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/du/duply/package.nix b/pkgs/by-name/du/duply/package.nix index c963bc589be8..d3157d64781e 100644 --- a/pkgs/by-name/du/duply/package.nix +++ b/pkgs/by-name/du/duply/package.nix @@ -14,21 +14,24 @@ which, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "duply"; - version = "2.4"; + version = "2.5.5"; src = fetchurl { - url = "mirror://sourceforge/project/ftplicity/duply%20%28simple%20duplicity%29/2.4.x/duply_${version}.tgz"; - hash = "sha256-DCrp3o/ukzkfnVaLbIK84bmYnXvqKsvlkGn3GJY3iNg="; + url = "mirror://sourceforge/project/ftplicity/duply%20%28simple%20duplicity%29/2.5.x/duply_${finalAttrs.version}.tgz"; + hash = "sha256-ABryuV5jJNoxcJLsSjODLOHuLKrSEhY3buzy1cQh+AU="; }; nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ txt2man ]; postPatch = "patchShebangs ."; installPhase = '' + runHook preInstall + mkdir -p "$out/bin" mkdir -p "$out/share/man/man1" install -vD duply "$out/bin" @@ -45,9 +48,11 @@ stdenv.mkDerivation rec { which ]} "$out/bin/duply" txt2man > "$out/share/man/man1/duply.1" + + runHook postInstall ''; - meta = with lib; { + meta = { description = "Shell front end for the duplicity backup tool"; mainProgram = "duply"; longDescription = '' @@ -57,8 +62,8 @@ stdenv.mkDerivation rec { secure backups on non-trusted spaces are no child's play? ''; homepage = "https://duply.net/"; - license = licenses.gpl2Only; - maintainers = [ maintainers.bjornfor ]; + license = lib.licenses.gpl2Only; + maintainers = [ lib.maintainers.bjornfor ]; platforms = lib.platforms.unix; }; -} +})