unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#62532] [PATCH] gnu: Add dool.
@ 2023-03-29 18:33 Yovan Naumovski via Guix-patches via
  2023-03-31 16:25 ` [bug#62532] [PATCH v2] " Yovan Naumovski via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: Yovan Naumovski via Guix-patches via @ 2023-03-29 18:33 UTC (permalink / raw)
  To: 62532; +Cc: Yovan Naumovski

* 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





^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-03 11:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-29 18:33 [bug#62532] [PATCH] gnu: Add dool Yovan Naumovski via Guix-patches via
2023-03-31 16:25 ` [bug#62532] [PATCH v2] " Yovan Naumovski via Guix-patches via
2023-04-03 11:14   ` bug#62532: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).