nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

deja-dup: 45.2 → 46.1

https://gitlab.gnome.org/World/deja-dup/-/compare/45.2...46.beta
https://gitlab.gnome.org/World/deja-dup/-/compare/46.beta...7646f5725ae4500d41e0b18576f317118d04ae66
https://gitlab.gnome.org/World/deja-dup/-/compare/7646f5725ae4500d41e0b18576f317118d04ae66...46.1

https://gitlab.gnome.org/World/deja-dup/-/releases/46.beta
https://gitlab.gnome.org/World/deja-dup/-/releases/46.0
https://gitlab.gnome.org/World/deja-dup/-/releases/46.1

Upgrading since OneDrive support is broken (duplicity requires requests_oauthlib).
The current version uses duplicity-rclone instead which requires rclone on PATH or it will complain: “rclone not found: please install rclone”
https://gitlab.com/duplicity/duplicity/-/blob/e435874ac9667b4b88d032a90312b08555903148/duplicity/backends/rclonebackend.py#L39

+17 -6
+12 -3
pkgs/applications/backup/deja-dup/default.nix
··· 18 18 , libgpg-error 19 19 , json-glib 20 20 , duplicity 21 + , rclone 21 22 }: 22 23 23 24 stdenv.mkDerivation (finalAttrs: { 24 25 pname = "deja-dup"; 25 - version = "45.2"; 26 + version = "46.1"; 26 27 27 28 src = fetchFromGitLab { 28 29 domain = "gitlab.gnome.org"; 29 30 owner = "World"; 30 31 repo = "deja-dup"; 31 32 rev = finalAttrs.version; 32 - hash = "sha256-nscswpWX6UB1zuv6TXcT3YE1wkREJYDGQrEPryyUYUM="; 33 + hash = "sha256-tKVY0wewBDx0AMzmTdko8vGg5bNGfYohgcSDg5Oky30="; 33 34 }; 34 35 35 36 patches = [ ··· 62 61 ]; 63 62 64 63 mesonFlags = [ 65 - "-Dduplicity_command=${duplicity}/bin/duplicity" 64 + "-Dduplicity_command=${lib.getExe duplicity}" 65 + "-Drclone_command=${lib.getExe rclone}" 66 66 ]; 67 + 68 + preFixup = '' 69 + gappsWrapperArgs+=( 70 + # Required by duplicity 71 + --prefix PATH : "${lib.makeBinPath [ rclone ]}" 72 + ) 73 + ''; 67 74 68 75 meta = with lib; { 69 76 description = "Simple backup tool";
+5 -3
pkgs/applications/backup/deja-dup/fix-paths.patch
··· 1 1 --- a/libdeja/duplicity/DuplicityInstance.vala 2 2 +++ b/libdeja/duplicity/DuplicityInstance.vala 3 - @@ -114,7 +114,7 @@ internal class DuplicityInstance : Object 3 + @@ -114,8 +114,8 @@ internal class DuplicityInstance : Object 4 4 // We already are pretty sure we don't have other duplicities in our 5 5 // archive directories, because we use our own and we ensure we only have 6 6 // one deja-dup running at a time via DBus. 7 - - Posix.system("/bin/rm -f " + Shell.quote(cache_dir) + "/*/lockfile.lock"); 8 - + Posix.system("@coreutils@/bin/rm -f " + Shell.quote(cache_dir) + "/*/lockfile.lock"); 7 + var lockfile_glob = Shell.quote(cache_dir) + "/*/lockfile.lock"; 8 + - if (Posix.system("/bin/rm -f " + lockfile_glob) != 0) 9 + + if (Posix.system("@coreutils@/bin/rm -f " + lockfile_glob) != 0) 10 + warning("Could not delete '%s'", lockfile_glob); 9 11 10 12 Process.spawn_async_with_pipes(null, real_argv, real_envp, 11 13 SpawnFlags.SEARCH_PATH |