From 3f74154fa125e6edc5a45f843771e04feafe4d84 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sun, 22 Dec 2024 12:10:43 +0800 Subject: [PATCH] duplicati: 2.0.8.1 -> 2.1.0.2 --- pkgs/by-name/du/duplicati/package.nix | 34 ++++++++++++++------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/du/duplicati/package.nix b/pkgs/by-name/du/duplicati/package.nix index 83b32d450dd64..aaef3d602b0d0 100644 --- a/pkgs/by-name/du/duplicati/package.nix +++ b/pkgs/by-name/du/duplicati/package.nix @@ -7,14 +7,16 @@ makeWrapper, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "duplicati"; - version = "2.0.8.1"; + version = "2.1.0.2"; channel = "beta"; - build_date = "2024-05-07"; + build_date = "2024-11-29"; src = fetchzip { - url = "https://github.com/duplicati/duplicati/releases/download/v${version}-${version}_${channel}_${build_date}/duplicati-${version}_${channel}_${build_date}.zip"; + url = + with finalAttrs; + "https://github.com/duplicati/duplicati/releases/download/v${version}-${version}_${channel}_${build_date}/duplicati-${version}_${channel}_${build_date}.zip"; hash = "sha256-LmW6yGutxP33ghFqyOLKrGDNCQdr8DDFn/IHigsLpzA="; stripRoot = false; }; @@ -22,17 +24,17 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ makeWrapper ]; installPhase = '' - mkdir -p $out/{bin,share/${pname}-${version}} - cp -r * $out/share/${pname}-${version} - makeWrapper "${mono}/bin/mono" $out/bin/duplicati-cli \ - --add-flags "$out/share/${pname}-${version}/Duplicati.CommandLine.exe" \ + mkdir -p $out/{bin,share/duplicati-${finalAttrs.version}} + cp -r * $out/share/duplicati-${finalAttrs.version} + makeWrapper "${lib.getExe mono}" $out/bin/duplicati-cli \ + --add-flags "$out/share/duplicati-${finalAttrs.version}/Duplicati.CommandLine.exe" \ --prefix LD_LIBRARY_PATH : ${ lib.makeLibraryPath [ sqlite ] } - makeWrapper "${mono}/bin/mono" $out/bin/duplicati-server \ - --add-flags "$out/share/${pname}-${version}/Duplicati.Server.exe" \ + makeWrapper "${lib.getExe mono}" $out/bin/duplicati-server \ + --add-flags "$out/share/duplicati-${finalAttrs.version}/Duplicati.Server.exe" \ --prefix LD_LIBRARY_PATH : ${ lib.makeLibraryPath [ sqlite @@ -40,15 +42,15 @@ stdenv.mkDerivation rec { } ''; - meta = with lib; { + meta = { description = "Free backup client that securely stores encrypted, incremental, compressed backups on cloud storage services and remote file servers"; homepage = "https://www.duplicati.com/"; - license = licenses.lgpl21; - maintainers = with maintainers; [ + license = lib.licenses.lgpl21; + maintainers = with lib.maintainers; [ nyanloutre bot-wxt1221 ]; - sourceProvenance = with sourceTypes; [ binaryBytecode ]; - platforms = platforms.all; + sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; + platforms = lib.platforms.all; }; -} +})