guix-commits
[Top][All Lists]
Advanced

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

04/04: gnu: atop: Use new package format.


From: guix-commits
Subject: 04/04: gnu: atop: Use new package format.
Date: Tue, 17 May 2022 05:41:14 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit ef55192ef8a0d9bd336731350f73b709ffd101a0
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue May 17 12:29:08 2022 +0300

    gnu: atop: Use new package format.
    
    * gnu/packages/admin.scm (atop)[arguments]: Rewrite using g-exps.
    [inputs]: Remove input labels.
---
 gnu/packages/admin.scm | 41 +++++++++++++++++++++--------------------
 1 file changed, 21 insertions(+), 20 deletions(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 30f51ef4b3..363f26ed0c 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4703,29 +4703,30 @@ Netgear devices.")
                 "0kjwgf94skbrndv1krlmsrq34smzi3iwk73fbsnyw787gvqx4j6a"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:tests? #f ; no test suite
+     (list
+       #:tests? #f              ; no test suite
        #:make-flags
-       (list (string-append "CC=" ,(cc-for-target))
-             (string-append "DESTDIR=" (assoc-ref %outputs "out"))
-             (string-append "SYSDPATH=/etc/systemd/system")
-             (string-append "PMPATHD=/etc/systemd/system-sleep")
-             ;; Or else it tries to create /var/log/atop...
-             (string-append "LOGPATH="))
+       #~(list (string-append "CC=" #$(cc-for-target))
+               (string-append "DESTDIR=" #$output)
+               (string-append "SYSDPATH=/etc/systemd/system")
+               (string-append "PMPATHD=/etc/systemd/system-sleep")
+               ;; Or else it tries to create /var/log/atop...
+               (string-append "LOGPATH="))
        #:phases
-       (modify-phases %standard-phases
-         (delete 'configure) ; No ./configure script
-         (add-before 'build 'patch-build
-           (lambda _
-             (substitute* "Makefile"
-               ;; Don't use /usr as a prefix
-               (("/usr") "")
-               ;; Otherwise, it creates a blank configuration file as a 
"default".
-               (("touch.*DEFPATH)/atop") "")
-               (("chmod.*DEFPATH)/atop") "")))))))
+       #~(modify-phases %standard-phases
+           (delete 'configure)  ; No ./configure script
+           (add-before 'build 'patch-build
+             (lambda _
+               (substitute* "Makefile"
+                 ;; Don't use /usr as a prefix.
+                 (("/usr") "")
+                 ;; Otherwise, it creates a blank configuration file as a 
"default".
+                 (("touch.*DEFPATH)/atop") "")
+                 (("chmod.*DEFPATH)/atop") "")))))))
     (inputs
-     `(("ncurses" ,ncurses)
-       ("python" ,python-wrapper) ; for `atopgpud`
-       ("zlib" ,zlib)))
+     (list ncurses
+           python-wrapper       ; for `atopgpud`
+           zlib))
     (home-page "https://www.atoptool.nl/";)
     (synopsis "Linux performance monitoring console")
     (description "Atop is an ASCII full-screen performance monitor for Linux



reply via email to

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