GNU bug report logs - #46520
[PATCH] gnu: bpytop: Add phase to install themes.

Previous Next

Package: guix-patches;

Reported by: Michael Rohleder <mike <at> rohleder.de>

Date: Sun, 14 Feb 2021 21:51:01 UTC

Severity: normal

Tags: patch

Done: 宋文武 <iyzsong <at> outlook.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46520 in the body.
You can then email your comments to 46520 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#46520; Package guix-patches. (Sun, 14 Feb 2021 21:51:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Rohleder <mike <at> rohleder.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 14 Feb 2021 21:51:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Rohleder <mike <at> rohleder.de>
To: guix-patches <at> gnu.org
Cc: Michael Rohleder <mike <at> rohleder.de>
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 <at> gmail.com>
 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust <at> gmail.com>
 ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke <at> gnu.org>
-;;; Copyright © 2020 Michael Rohleder <mike <at> rohleder.de>
+;;; Copyright © 2020, 2021 Michael Rohleder <mike <at> rohleder.de>
 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll <at> gmail.com>
 ;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith <at> outlook.com>
 ;;; Copyright © 2021 Zheng Junjie <873216071 <at> 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





Reply sent to 宋文武 <iyzsong <at> outlook.com>:
You have taken responsibility. (Mon, 15 Feb 2021 00:50:01 GMT) Full text and rfc822 format available.

Notification sent to Michael Rohleder <mike <at> rohleder.de>:
bug acknowledged by developer. (Mon, 15 Feb 2021 00:50:01 GMT) Full text and rfc822 format available.

Message #10 received at 46520-done <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> outlook.com>
To: Michael Rohleder <mike <at> rohleder.de>
Cc: 46520-done <at> debbugs.gnu.org
Subject: Re: bug#46520: [PATCH] gnu: bpytop: Add phase to install themes.
Date: Mon, 15 Feb 2021 08:51:24 +0800
Michael Rohleder <mike <at> 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!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 15 Mar 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.