From 429fdb8003a0f39a23749d15c02e2bfca9e96f15 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Thu, 14 Oct 2021 17:30:09 +0200 Subject: [PATCH 3/3] gnu: deja-dup: let deja-dup find duplicity * gnome.scm (deja-dup): wrap deja-dup to set PATH --- gnu/packages/gnome.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 17fb2e0146..1adb22773e 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -1773,7 +1773,14 @@ (define-public deja-dup (lambda _ (substitute* "data/post-install.sh" (("gtk-update-icon-cache") "true")) - #t))))) + #t)) + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; Add duplicity to the search path + (wrap-program (string-append (assoc-ref outputs "out") + "/bin/deja-dup") + `("PATH" ":" prefix + (,(format #f "~a/bin" (assoc-ref inputs "duplicity")))))))))) (inputs `(("gsettings-desktop-schemas" ,gsettings-desktop-schemas) ("duplicity" ,duplicity) -- 2.33.0