guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

71/163: gnu: notifymuch: Wrap with the new Guix PYTHONPATH.


From: guix-commits
Subject: 71/163: gnu: notifymuch: Wrap with the new Guix PYTHONPATH.
Date: Mon, 25 Jan 2021 02:01:34 -0500 (EST)

apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.

commit bddd49cc29b41a6173bfb7ca65f1ec101afca228
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Jan 23 20:48:01 2021 -0500

    gnu: notifymuch: Wrap with the new Guix PYTHONPATH.
    
    * gnu/packages/mail.scm (notifymuch)
    [phases]{wrap-program}: Wrap with the new Guix PYTHONPATH.
    Delete trailing #t.
---
 gnu/packages/mail.scm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 043f5c5..1d6f8e0 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1226,15 +1226,15 @@ Notmuch.")
        `(#:phases
          (modify-phases %standard-phases
            (add-after 'install 'wrap-binary
-             (lambda* (#:key outputs #:allow-other-keys)
+             (lambda* (#:key inputs outputs #:allow-other-keys)
                (let* ((out (assoc-ref outputs "out"))
-                      (bin (string-append out "/bin/notifymuch")))
+                      (bin (string-append out "/bin/notifymuch"))
+                      (pythonpath (guix-pythonpath inputs)))
                  (wrap-program bin
-                   `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
+                   `(,pythonpath ":" prefix (,(getenv pythonpath)))
                    `("GI_TYPELIB_PATH" ":" prefix
                      (,(getenv "GI_TYPELIB_PATH")
-                      ,(string-append out "/lib/girepository-1.0")))))
-               #t)))))
+                      ,(string-append out "/lib/girepository-1.0"))))))))))
       (home-page "https://github.com/kspi/notifymuch";)
       (synopsis "Displays notifications for changes in the notmuch email 
database")
       (description "notifymuch displays desktop notifications for messages in



reply via email to

[Prev in Thread] Current Thread [Next in Thread]