emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#46520: closed ([PATCH] gnu: bpytop: Add phase to install themes.)


From: GNU bug Tracking System
Subject: bug#46520: closed ([PATCH] gnu: bpytop: Add phase to install themes.)
Date: Mon, 15 Feb 2021 00:50:01 +0000

Your message dated Mon, 15 Feb 2021 08:51:24 +0800
with message-id 
<OSZP286MB06647B0D87B7D885B463A7A8A3889@OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM>
and subject line Re: bug#46520: [PATCH] gnu: bpytop: Add phase to install 
themes.
has caused the debbugs.gnu.org bug report #46520,
regarding [PATCH] gnu: bpytop: Add phase to install themes.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
46520: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46520
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: bpytop: Add phase to install themes. Date: Sun, 14 Feb 2021 22:50:37 +0100
* gnu/packages/admin.scm (bpytop)[arguments]: Add install-themes phase.

Reported by bdju in #guix.
---
 gnu/packages/admin.scm | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 8dc6a4f303..71595750f2 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -32,7 +32,7 @@
 ;;; Copyright © 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
 ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
-;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
+;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
 ;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com>
 ;;; Copyright © 2021 Zheng Junjie <873216071@qq.com>
@@ -591,6 +591,18 @@ memory, disks, network and processes.")
     (build-system python-build-system)
     (inputs
      `(("python-psutil" ,python-psutil)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-themes
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((themes (string-append (assoc-ref outputs "out")
+                                          "/lib/python"
+                                          ,(version-major+minor
+                                            (package-version python))
+                                          "/site-packages/bpytop-themes")))
+               (mkdir-p themes)
+               (copy-recursively "bpytop-themes" themes)))))))
     (home-page
      "https://github.com/aristocratos/bpytop";)
     (synopsis "Resource monitor")
-- 
2.30.1




--- End Message ---
--- Begin Message --- Subject: Re: bug#46520: [PATCH] gnu: bpytop: Add phase to install themes. Date: Mon, 15 Feb 2021 08:51:24 +0800 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Michael Rohleder <mike@rohleder.de> writes:

> * gnu/packages/admin.scm (bpytop)[arguments]: Add install-themes phase.
>
> Reported by bdju in #guix.
> ---
>  gnu/packages/admin.scm | 14 +++++++++++++-
>  1 file changed, 13 insertions(+), 1 deletion(-)
>

Pushed, thank you!


--- End Message ---

reply via email to

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