From d8d1b59ece2c568bae947a9f2c3bf30b583c1a32 Mon Sep 17 00:00:00 2001 From: aleksana Date: Fri, 14 Nov 2025 21:41:09 +0800 Subject: [PATCH] deja-dup: 48.4 ->49.2 --- pkgs/by-name/de/deja-dup/fix-paths.patch | 13 ------- pkgs/by-name/de/deja-dup/package.nix | 43 ++++++++++++------------ 2 files changed, 21 insertions(+), 35 deletions(-) delete mode 100644 pkgs/by-name/de/deja-dup/fix-paths.patch diff --git a/pkgs/by-name/de/deja-dup/fix-paths.patch b/pkgs/by-name/de/deja-dup/fix-paths.patch deleted file mode 100644 index c5a735b1c558..000000000000 --- a/pkgs/by-name/de/deja-dup/fix-paths.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/libdeja/duplicity/DuplicityInstance.vala -+++ b/libdeja/duplicity/DuplicityInstance.vala -@@ -114,8 +114,8 @@ internal class DuplicityInstance : Object - // We already are pretty sure we don't have other duplicities in our - // archive directories, because we use our own and we ensure we only have - // one deja-dup running at a time via DBus. - var lockfile_glob = Shell.quote(cache_dir) + "/*/lockfile.lock"; -- if (Posix.system("/bin/rm -f " + lockfile_glob) != 0) -+ if (Posix.system("@coreutils@/bin/rm -f " + lockfile_glob) != 0) - warning("Could not delete '%s'", lockfile_glob); - - Process.spawn_async_with_pipes(null, real_argv, real_envp, - SpawnFlags.SEARCH_PATH | diff --git a/pkgs/by-name/de/deja-dup/package.nix b/pkgs/by-name/de/deja-dup/package.nix index e4e3dc104bc3..9ceb043ee771 100644 --- a/pkgs/by-name/de/deja-dup/package.nix +++ b/pkgs/by-name/de/deja-dup/package.nix @@ -2,25 +2,26 @@ lib, stdenv, fetchFromGitLab, - replaceVars, meson, ninja, pkg-config, vala, gettext, itstool, + blueprint-compiler, desktop-file-utils, glib, glib-networking, gtk4, - coreutils, libsoup_3, libsecret, libadwaita, wrapGAppsHook4, libgpg-error, json-glib, + borgbackup, duplicity, + fuse, rclone, restic, nix-update-script, @@ -28,22 +29,16 @@ stdenv.mkDerivation (finalAttrs: { pname = "deja-dup"; - version = "48.4"; + version = "49.2"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; owner = "World"; repo = "deja-dup"; - rev = finalAttrs.version; - hash = "sha256-hFmuJqUHBMSsQW+a9GjI82wNOQjHt5f3rEkGUxYA6Y0="; + tag = finalAttrs.version; + hash = "sha256-yH4XX1MwPxTmKh6p27pYQBQDyeGIT+Ed9E0Y508EF7s="; }; - patches = [ - (replaceVars ./fix-paths.patch { - inherit coreutils; - }) - ]; - nativeBuildInputs = [ meson ninja @@ -51,6 +46,7 @@ stdenv.mkDerivation (finalAttrs: { vala gettext itstool + blueprint-compiler desktop-file-utils wrapGAppsHook4 ]; @@ -67,10 +63,13 @@ stdenv.mkDerivation (finalAttrs: { ]; mesonFlags = [ - "-Dduplicity_command=${lib.getExe duplicity}" - "-Drclone_command=${lib.getExe rclone}" - "-Denable_restic=true" - "-Drestic_command=${lib.getExe restic}" + # Check https://gitlab.gnome.org/World/deja-dup/-/blob/main/meson.options + (lib.mesonOption "borg_command" (lib.getExe borgbackup)) + (lib.mesonOption "duplicity_command" (lib.getExe duplicity)) + (lib.mesonOption "fusermount_command" (lib.getExe' fuse "fusermount")) + (lib.mesonOption "rclone_command" (lib.getExe rclone)) + (lib.mesonOption "restic_command" (lib.getExe restic)) + (lib.mesonEnable "packagekit" false) # packagekit-glib not packaged ]; preFixup = '' @@ -84,19 +83,19 @@ stdenv.mkDerivation (finalAttrs: { updateScript = nix-update-script { }; }; - meta = with lib; { + meta = { description = "Simple backup tool"; longDescription = '' - Déjà Dup is a simple backup tool. It hides the complexity \ - of backing up the Right Way (encrypted, off-site, and regular) \ + Déjà Dup is a simple backup tool. It hides the complexity + of backing up the Right Way (encrypted, off-site, and regular) and uses duplicity as the backend. ''; homepage = "https://apps.gnome.org/DejaDup/"; changelog = "https://gitlab.gnome.org/World/deja-dup/-/releases/${finalAttrs.version}"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ jtojnar ]; - teams = [ teams.gnome-circle ]; - platforms = platforms.linux; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ jtojnar ]; + teams = [ lib.teams.gnome-circle ]; + platforms = lib.platforms.linux; mainProgram = "deja-dup"; }; })