all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yovan Naumovski via Guix-patches via <guix-patches@gnu.org>
To: 62532@debbugs.gnu.org
Cc: Yovan Naumovski <yovan@gorski.stream>
Subject: [bug#62532] [PATCH v2] gnu: Add dool.
Date: Fri, 31 Mar 2023 19:25:30 +0300	[thread overview]
Message-ID: <20230331162530.27770-1-yovan@gorski.stream> (raw)
In-Reply-To: <20230329183313.24453-1-yovan@gorski.stream>

* 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





  reply	other threads:[~2023-03-31 16:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-29 18:33 [bug#62532] [PATCH] gnu: Add dool Yovan Naumovski via Guix-patches via
2023-03-31 16:25 ` Yovan Naumovski via Guix-patches via [this message]
2023-04-03 11:14   ` bug#62532: [PATCH v2] " Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230331162530.27770-1-yovan@gorski.stream \
    --to=guix-patches@gnu.org \
    --cc=62532@debbugs.gnu.org \
    --cc=yovan@gorski.stream \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.