unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#64490] [PATCH] gnu: Add gnome-shell-extension-vitals.
@ 2023-07-06  9:10 Eidvilas Markevičius
  2023-07-08  4:51 ` bug#64490: " Maxim Cournoyer
  2023-07-08 15:52 ` [bug#64490] " Liliana Marie Prikler
  0 siblings, 2 replies; 3+ messages in thread
From: Eidvilas Markevičius @ 2023-07-06  9:10 UTC (permalink / raw)
  To: 64490
  Cc: Eidvilas Markevičius, Liliana Marie Prikler, Maxim Cournoyer,
	Raghav Gururajan

* gnu/packages/gnome-xyz.scm (gnome-shell-extension-vitals): New variable.
---
 gnu/packages/gnome-xyz.scm | 56 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm
index 4ce102d8ed..b2652d422f 100644
--- a/gnu/packages/gnome-xyz.scm
+++ b/gnu/packages/gnome-xyz.scm
@@ -19,6 +19,7 @@
 ;;; Copyright © 2022 Eric Bavier <bavier@posteo.net>
 ;;; Copyright © 2022 Sughosha <sughosha@proton.me>
 ;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+;;; Copyright © 2023 Eidvilas Markevičius <markeviciuseidvilas@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1328,6 +1329,61 @@ (define-public gnome-shell-extension-transparent-window
 of windows.")
       (license license:expat))))
 
+(define-public gnome-shell-extension-vitals
+  (package
+    (name "gnome-shell-extension-vitals")
+    (version "62.0.0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/corecoding/Vitals")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256 (base32 "0wmw5yd38vyv13x6frbafp21bdhlyjd5ggimdf2696irfhnm828h"))
+        (modules '((guix build utils)))
+        (snippet
+          '(begin
+             (delete-file "schemas/gschemas.compiled")
+             (for-each delete-file
+               (find-files "locale" "\\.mo$"))))))
+    (build-system copy-build-system)
+    (native-inputs (list `(,glib "bin") gettext-minimal))
+    (inputs (list libgtop))
+    (arguments
+     '(#:modules
+       ((guix build copy-build-system)
+        (guix build utils)
+        (ice-9 string-fun))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'compile-schemas
+           (lambda _
+             (invoke "glib-compile-schemas" "--strict" "schemas")))
+         (add-before 'install 'compile-locales
+           (lambda _
+             (for-each (lambda (file)
+                         (let ((destfile (string-replace-substring file ".po" ".mo")))
+                           (invoke "msgfmt" "-c" file "-o" destfile)))
+               (find-files "locale" "\\.po$")))))
+       #:install-plan
+       '(("." "share/gnome-shell/extensions/Vitals@CoreCoding.com"
+          #:include-regexp
+          ("\\.js(on)?$"
+           "\\.css$"
+           "\\.ui$"
+           "\\.svg$"
+           "\\.xml$"
+           "\\.mo$"
+           "\\.compiled$")))))
+    (home-page "https://github.com/corecoding/Vitals")
+    (synopsis "GNOME Shell extension for monitoring your computer's sensors' stats")
+    (description "Vitals is a GNOME Shell extension that gives you a glimpse into your
+computer's temperature, voltage, fan speed, memory usage and CPU load, right from the top
+menu bar of the GNOME Shell.  It is a one stop shop for monitoring all the vital sensors
+of your computer.")
+    (license license:gpl2)))
+
 (define-public arc-theme
   (package
     (name "arc-theme")

base-commit: 67c276a870b9d6be69c2a9e867683e58928c38ef
-- 
2.40.1





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

end of thread, other threads:[~2023-07-08 15:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-06  9:10 [bug#64490] [PATCH] gnu: Add gnome-shell-extension-vitals Eidvilas Markevičius
2023-07-08  4:51 ` bug#64490: " Maxim Cournoyer
2023-07-08 15:52 ` [bug#64490] " Liliana Marie Prikler

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).