GNU bug report logs - #62532
[PATCH] gnu: Add dool.

Previous Next

Package: guix-patches;

Reported by: Yovan Naumovski <yovan <at> gorski.stream>

Date: Wed, 29 Mar 2023 18:34:02 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

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 62532 in the body.
You can then email your comments to 62532 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#62532; Package guix-patches. (Wed, 29 Mar 2023 18:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Yovan Naumovski <yovan <at> gorski.stream>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 29 Mar 2023 18:34:02 GMT) Full text and rfc822 format available.

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

From: Yovan Naumovski <yovan <at> gorski.stream>
To: guix-patches <at> gnu.org
Cc: Yovan Naumovski <yovan <at> gorski.stream>
Subject: [PATCH] gnu: Add dool.
Date: Wed, 29 Mar 2023 21:33:13 +0300
* gnu/packages/admin.scm (dool): New variable.
---
 gnu/packages/admin.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index f48362c203..1f189f224c 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -3448,6 +3448,47 @@ (define-public dstat
     (home-page "http://dag.wiee.rs/home-made/dstat/")
     (license license:gpl2+)))
 
+(define-public dool
+  (package
+    (name "dool")
+    (version "1.1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/scottchiefbaker/dool")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name "dool" version))
+       (sha256
+        (base32 "13qq52lq7z3pl2mgrhwqh8c69p9x5rkyjqjswszd6vdbzm7zk7yq"))))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'remove-symlinks-and-snap-packaging
+           ;; remove symlinks that make 'ensure-no-mtimes-pre-1980 fail
+           (lambda _
+             (delete-file "examples/dstat.py")
+             (delete-file-recursively "packaging/snap")))
+         (replace 'build
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (out-share (string-append out "/share"))
+                    (out-share-man (string-append out-share "/man")))
+               (substitute* "install.py"
+                 (("homedir  = os.path.expanduser(.*)$")
+                  (string-append "homedir = \"" out "\"")))
+               (invoke "python" "install.py")
+               (install-file "docs/dool.1" (string-append out-share-man "/man1/")))))
+         (delete 'install)
+         (delete 'check))))
+    (build-system python-build-system)
+    (synopsis "Command line system resource monitoring tool")
+    (description "Dool is a command line tool to monitor many aspects of your
+system: CPU, Memory, Network, Load Average, etc. It also includes a robust
+plug-in architecture to allow monitoring other system metrics.")
+    (home-page "https://github.com/scottchiefbaker/dool")
+    (license license:gpl2+)))
+
 (define-public thefuck
   (package
     (name "thefuck")
-- 
2.39.2





Information forwarded to guix-patches <at> gnu.org:
bug#62532; Package guix-patches. (Fri, 31 Mar 2023 16:26:02 GMT) Full text and rfc822 format available.

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

From: Yovan Naumovski <yovan <at> gorski.stream>
To: 62532 <at> debbugs.gnu.org
Cc: Yovan Naumovski <yovan <at> gorski.stream>
Subject: [PATCH v2] gnu: Add dool.
Date: Fri, 31 Mar 2023 19:25:30 +0300
* gnu/packages/admin.scm (dool): New variable.
---
 gnu/packages/admin.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index f48362c203..48a16ea69d 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -3448,6 +3448,46 @@ (define-public dstat
     (home-page "http://dag.wiee.rs/home-made/dstat/")
     (license license:gpl2+)))
 
+(define-public dool
+  (package
+    (name "dool")
+    (version "1.1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/scottchiefbaker/dool")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name "dool" version))
+       (sha256
+        (base32 "13qq52lq7z3pl2mgrhwqh8c69p9x5rkyjqjswszd6vdbzm7zk7yq"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-symlinks-and-snap-packaging
+            ;; remove symlinks that make 'ensure-no-mtimes-pre-1980 fail
+            (lambda _
+              (delete-file "examples/dstat.py")
+              (delete-file-recursively "packaging/snap")))
+          (replace 'build
+            (lambda _
+              (let ((share-man (string-append #$output "/share/man")))
+                (substitute* "install.py"
+                  (("homedir  = os.path.expanduser(.*)$")
+                   (string-append "homedir = \"" #$output "\"")))
+                (invoke "python" "install.py")
+                (install-file "docs/dool.1" (string-append share-man "/man1/")))))
+          (delete 'install)
+          (delete 'check))))
+    (synopsis "Command line system resource monitoring tool")
+    (description "Dool is a command line tool to monitor many aspects of your
+system: CPU, Memory, Network, Load Average, etc.  It also includes a robust
+plug-in architecture to allow monitoring other system metrics.")
+    (home-page "https://github.com/scottchiefbaker/dool")
+    (license license:gpl2+)))
+
 (define-public thefuck
   (package
     (name "thefuck")
-- 
2.39.2





Information forwarded to guix-patches <at> gnu.org:
bug#62532; Package guix-patches. (Mon, 03 Apr 2023 11:15:01 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Yovan Naumovski via Guix-patches via <guix-patches <at> gnu.org>
Cc: 62532-done <at> debbugs.gnu.org, Yovan Naumovski <yovan <at> gorski.stream>
Subject: Re: [bug#62532] [PATCH v2] gnu: Add dool.
Date: Mon, 03 Apr 2023 13:14:21 +0200
Hello,

Yovan Naumovski via Guix-patches via <guix-patches <at> gnu.org> writes:

> * gnu/packages/admin.scm (dool): New variable.

Thank you!

I fixed installation directories and added smoke tests. Applied!

Regards,
-- 
Nicolas Goaziou




Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Mon, 03 Apr 2023 11:15:02 GMT) Full text and rfc822 format available.

Notification sent to Yovan Naumovski <yovan <at> gorski.stream>:
bug acknowledged by developer. (Mon, 03 Apr 2023 11:15:03 GMT) Full text and rfc822 format available.

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

This bug report was last modified 2 years and 45 days ago.

Previous Next


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