1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2019, 2020 Leo Prikler <leo.prikler@student.tugraz.at>
3 ;;; Copyright © 2019 Alexandros Theodotou <alex@zrythm.org>
4 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
5 ;;; Copyright © 2020 Alex Griffin <a@ajgrf.com>
6 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
7 ;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
8 ;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
9 ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
11 ;;; This file is part of GNU Guix.
13 ;;; GNU Guix is free software; you can redistribute it and/or modify it
14 ;;; under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 3 of the License, or (at
16 ;;; your option) any later version.
18 ;;; GNU Guix is distributed in the hope that it will be useful, but
19 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
26 (define-module (gnu packages gnome-xyz)
27 #:use-module (guix build-system trivial)
28 #:use-module (guix build-system gnu)
29 #:use-module (guix build-system copy)
30 #:use-module (guix build-system meson)
31 #:use-module (guix git-download)
32 #:use-module (guix packages)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (gnu packages base)
35 #:use-module (gnu packages bash)
36 #:use-module (gnu packages gettext)
37 #:use-module (gnu packages glib)
38 #:use-module (gnu packages gnome)
39 #:use-module (gnu packages gtk)
40 #:use-module (gnu packages pkg-config)
41 #:use-module (gnu packages python-xyz)
42 #:use-module (gnu packages ssh)
43 #:use-module (gnu packages tls)
44 #:use-module (gnu packages ruby)
45 #:use-module (gnu packages xml))
47 (define-public matcha-theme
50 (version "2020-05-09")
56 (url "https://github.com/vinceliuice/Matcha-gtk-theme")
58 (file-name (git-file-name name version))
61 "0fp3ijynyvncy2byjjyba573p81x2pl2hdzv17mg40r8d5mjlkww"))))
62 (build-system trivial-build-system)
64 '(#:modules ((guix build utils))
67 (use-modules (guix build utils))
68 (let* ((out (assoc-ref %outputs "out"))
69 (source (assoc-ref %build-inputs "source"))
70 (bash (assoc-ref %build-inputs "bash"))
71 (coreutils (assoc-ref %build-inputs "coreutils"))
72 (themesdir (string-append out "/share/themes")))
74 (string-append coreutils "/bin:"
75 (string-append bash "/bin:")))
76 (copy-recursively source (getcwd))
77 (patch-shebang "install.sh")
79 (invoke "./install.sh" "-d" themesdir)
82 `(("gtk-engines" ,gtk-engines)))
85 ("coreutils" ,coreutils)))
86 (synopsis "Flat design theme for GTK 3, GTK 2 and GNOME-Shell")
87 (description "Matcha is a flat Design theme for GTK 3, GTK 2 and
88 Gnome-Shell which supports GTK 3 and GTK 2 based desktop environments
89 like Gnome, Unity, Budgie, Pantheon, XFCE, Mate and others.")
90 (home-page "https://github.com/vinceliuice/matcha")
91 (license license:gpl3+)))
93 (define-public delft-icon-theme
95 (name "delft-icon-theme")
101 (url "https://github.com/madmaxms/iconpack-delft")
102 (commit (string-append "v" version))))
105 "1r6b6jf793jxz15ljniwbqy3vcvsl2712qiigfrfrm46fdxlshjd"))
106 (file-name (git-file-name name version))))
107 (build-system copy-build-system)
110 `(("." "share/icons" #:exclude ("README.md" "LICENSE" "logo.jpg")))
112 (modify-phases %standard-phases
113 (add-after 'unpack 'patch-index.theme
115 (substitute* "Delft/index.theme"
116 (("gnome") "Adwaita"))
118 (home-page "https://www.gnome-look.org/p/1199881/")
119 (synopsis "Continuation of Faenza icon theme with up to date app icons")
120 (description "Delft is a fork of the popular icon theme Faenza with up to
121 date app icons. It will stay optically close to the original Faenza icons,
122 which haven't been updated for some years. The new app icons are ported from
123 the Obsidian icon theme.")
124 (license license:gpl3)))
126 (define-public gnome-shell-extension-appindicator
128 (name "gnome-shell-extension-appindicator")
134 "https://github.com/ubuntu/gnome-shell-extension-appindicator.git")
135 (commit (string-append "v" version))))
138 "0qm77s080nbf4gqnfzpwp8a7jf7lliz6fxbsd3lasvrr11pgsk87"))
139 (file-name (git-file-name name version))))
140 (build-system copy-build-system)
143 '(("." ,(string-append "share/gnome-shell/extensions/"
144 "appindicatorsupport@rgcjonas.gmail.com")))))
145 (synopsis "Adds KStatusNotifierItem support to GNOME Shell")
146 (description "This extension integrates Ubuntu AppIndicators
147 and KStatusNotifierItems (KDE's successor of the systray) into
149 (home-page "https://github.com/ubuntu/gnome-shell-extension-appindicator/")
150 (license license:gpl2+)))
152 (define-public gnome-shell-extension-clipboard-indicator
154 (name "gnome-shell-extension-clipboard-indicator")
159 (url (string-append "https://github.com/Tudmotu/"
160 "gnome-shell-extension-clipboard-indicator.git"))
161 (commit (string-append "v" version))))
162 (file-name (git-file-name name version))
165 "0i00psc1ky70zljd14jzr627y7nd8xwnwrh4xpajl1f6djabh12s"))
166 (modules '((guix build utils)))
168 ;; Remove pre-compiled settings schemas and translations from
169 ;; source, as they are generated as part of build. Upstream
170 ;; includes them for people who want to run the software
171 ;; directly from source tree.
172 '(begin (delete-file "schemas/gschemas.compiled")
173 (for-each delete-file (find-files "locale" "\\.mo$"))
175 (build-system copy-build-system)
178 '(("." "share/gnome-shell/extensions/clipboard-indicator@tudmotu.com"
179 #:include-regexp ("\\.css$" "\\.compiled$" "\\.js(on)?$" "\\.mo$" "\\.xml$")))
181 (modify-phases %standard-phases
182 (add-before 'install 'compile-schemas
184 (with-directory-excursion "schemas"
185 (invoke "glib-compile-schemas" "."))
187 (add-before 'install 'compile-locales
188 (lambda _ (invoke "./compile-locales.sh")
191 `(("gettext" ,gettext-minimal)
192 ("glib:bin" ,glib "bin"))) ; for glib-compile-schemas
193 (home-page "https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator")
194 (synopsis "Clipboard manager extension for GNOME Shell")
195 (description "Clipboard Indicator is a clipboard manager for GNOME Shell
196 that caches clipboard history.")
197 (license license:expat)))
199 (define-public gnome-shell-extension-topicons-redux
201 (name "gnome-shell-extension-topicons-redux")
207 (url "https://gitlab.com/pop-planet/TopIcons-Redux.git")
209 (file-name (git-file-name name version))
211 (base32 "1dli9xb545n3xlj6q4wl0y5gzkm903zs47p8fiq71pdvbr6v38rj"))))
212 (build-system gnu-build-system)
214 `(("glib" ,glib "bin")))
216 `(#:tests? #f ;no test defined in the project
218 (modify-phases %standard-phases
222 (lambda* (#:key outputs #:allow-other-keys)
223 (let ((out (assoc-ref outputs "out")))
229 "/share/gnome-shell/extensions"))))))))
230 (home-page "https://gitlab.com/pop-planet/TopIcons-Redux")
231 (synopsis "Display legacy tray icons in the GNOME Shell top panel")
232 (description "Many applications, such as chat clients, downloaders, and
233 some media players, are meant to run long-term in the background even after you
234 close their window. These applications remain accessible by adding an icon to
235 the GNOME Shell Legacy Tray. However, the Legacy Tray was removed in GNOME
236 3.26. TopIcons Redux brings those icons back into the top panel so that it's
237 easier to keep track of apps running in the backround.")
238 (license license:gpl2+)))
240 (define-public gnome-shell-extension-dash-to-dock
242 (name "gnome-shell-extension-dash-to-dock")
247 (url "https://github.com/micheleg/dash-to-dock")
248 (commit (string-append "extensions.gnome.org-v"
252 "1746xm0iyvyzj6m3pvjx11smh9w1s7naz426ki0dlr5l7jh3mpy5"))
253 (file-name (git-file-name name version))))
254 (build-system gnu-build-system)
257 #:make-flags (list (string-append "INSTALLBASE="
258 (assoc-ref %outputs "out")
259 "/share/gnome-shell/extensions"))
261 (modify-phases %standard-phases
263 (delete 'configure))))
265 `(("glib:bin" ,glib "bin")
266 ("intltool" ,intltool)
267 ("pkg-config" ,pkg-config)))
270 (synopsis "Transforms GNOME's dash into a dock")
271 (description "This extension moves the dash out of the
272 overview, transforming it into a dock for easier application launching and
273 faster window switching.")
274 (home-page "https://micheleg.github.io/dash-to-dock/")
275 (license license:gpl2+)))
277 (define-public gnome-shell-extension-gsconnect
279 (name "gnome-shell-extension-gsconnect")
280 ;; v33 is the last version to support GNOME 3.34
285 (url (string-append "https://github.com/andyholmes"
286 "/gnome-shell-extension-gsconnect.git"))
287 (commit (string-append "v" version))))
288 (file-name (git-file-name name version))
291 "1q03axhn75i864vgmd6myhmgwrmnpf01gsd1wl0di5x9q8mic2zn"))))
292 (build-system meson-build-system)
295 (let* ((out (assoc-ref %outputs "out"))
296 (name+version (strip-store-file-name out))
297 (gschema-dir (string-append out
298 "/share/gsettings-schemas/"
300 "/glib-2.0/schemas"))
301 (gnome-shell (assoc-ref %build-inputs "gnome-shell"))
302 (openssh (assoc-ref %build-inputs "openssh"))
303 (openssl (assoc-ref %build-inputs "openssl")))
305 (string-append "-Dgnome_shell_libdir=" gnome-shell "/lib")
306 (string-append "-Dgsettings_schemadir=" gschema-dir)
307 (string-append "-Dopenssl_path=" openssl "/bin/openssl")
308 (string-append "-Dsshadd_path=" openssh "/bin/ssh-add")
309 (string-append "-Dsshkeygen_path=" openssh "/bin/ssh-keygen")
310 (string-append "-Dsession_bus_services_dir=" out "/share/dbus-1/services")
311 "-Dpost_install=true"))
313 (modify-phases %standard-phases
314 (add-before 'configure 'fix-paths
315 (lambda* (#:key inputs #:allow-other-keys)
316 (let* ((glib (assoc-ref inputs "glib:bin"))
317 (gapplication (string-append glib "/bin/gapplication"))
318 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
319 (substitute* "data/org.gnome.Shell.Extensions.GSConnect.desktop"
320 (("gapplication") gapplication))
325 (string-append "'use strict';\n\n"
326 "'" gi-typelib-path "'.split(':').forEach("
327 "path => imports.gi.GIRepository.Repository."
328 "prepend_search_path(path));"))))
329 '("src/extension.js" "src/prefs.js"))
331 (add-after 'install 'wrap-daemons
332 (lambda* (#:key inputs outputs #:allow-other-keys)
333 (let* ((out (assoc-ref outputs "out"))
335 (string-append out "/share/gnome-shell/extensions"
336 "/gsconnect@andyholmes.github.io/service"))
337 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
338 (wrap-program (string-append service-dir "/daemon.js")
339 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
342 `(("at-spi2-core" ,at-spi2-core)
344 ("evolution-data-server" ,evolution-data-server)
347 ("glib:bin" ,glib "bin")
349 ("gnome-shell" ,gnome-shell)
351 ("nautilus" ,nautilus)
354 ("python-nautilus" ,python-nautilus)
355 ("python-pygobject" ,python-pygobject)
358 `(("gettext" ,gettext-minimal)
359 ("gobject-introspection" ,gobject-introspection)
361 ("pkg-config" ,pkg-config)))
362 (home-page "https://github.com/andyholmes/gnome-shell-extension-gsconnect/wiki")
363 (synopsis "Connect GNOME Shell with your Android phone")
364 (description "GSConnect is a complete implementation of KDE Connect
365 especially for GNOME Shell, allowing devices to securely share content, like
366 notifications or files, and other features like SMS messaging and remote
368 (license license:gpl2)))
370 (define-public gnome-shell-extension-hide-app-icon
371 (let ((commit "4188aa5f4ba24901a053a0c3eb0d83baa8625eab")
374 (name "gnome-shell-extension-hide-app-icon")
375 (version (git-version "2.7" revision commit))
380 (url (string-append "https://github.com/michael-rapp"
381 "/gnome-shell-extension-hide-app-icon.git"))
385 "1i28n4bz6wrhn07vpxkr6l1ljyn7g8frp5xrr11z3z32h2hxxcd6"))
386 (file-name (git-file-name name version))))
387 (build-system gnu-build-system)
389 '(#:tests? #f ; no test target
390 #:make-flags (list (string-append "EXTENSIONS_DIR="
391 (assoc-ref %outputs "out")
392 "/share/gnome-shell/extensions"))
394 (modify-phases %standard-phases
395 (delete 'configure) ; no configure script
397 (lambda* (#:key outputs #:allow-other-keys)
398 (let ((out (assoc-ref outputs "out"))
399 (pre "/share/gnome-shell/extensions/")
400 (dir "hide-app-icon@mrapp.sourceforge.com"))
401 (copy-recursively dir (string-append out pre dir))
404 `(("glib" ,glib "bin")
405 ("intltool" ,intltool)))
408 (synopsis "Hide app icon from GNOME's panel")
409 (description "This extension hides the icon and/or title of the
410 currently focused application in the top panel of the GNOME shell.")
412 "https://github.com/michael-rapp/gnome-shell-extension-hide-app-icon/")
414 ;; README.md and LICENSE.txt disagree -- the former claims v3, the
415 ;; latter v2. No mention of "or later" in either place or in the code.
419 (define-public gnome-shell-extension-dash-to-panel
421 (name "gnome-shell-extension-dash-to-panel")
426 (url "https://github.com/home-sweet-gnome/dash-to-panel")
427 (commit (string-append "v" version))))
430 "1kvybb49l1vf0fvh8d0c6xkwnry8m330scamf5x40y63d4i213j1"))
431 (file-name (git-file-name name version))))
432 (build-system gnu-build-system)
435 #:make-flags (list (string-append "INSTALLBASE="
436 (assoc-ref %outputs "out")
437 "/share/gnome-shell/extensions")
438 (string-append "VERSION="
440 gnome-shell-extension-dash-to-panel)))
442 (modify-phases %standard-phases
444 (delete 'configure))))
446 `(("intltool" ,intltool)
447 ("pkg-config" ,pkg-config)))
450 ("glib" ,glib "bin")))
451 (synopsis "Icon taskbar for GNOME Shell")
452 (description "This extension moves the dash into the gnome main
453 panel so that the application launchers and system tray are combined
454 into a single panel, similar to that found in KDE Plasma and Windows 7+.")
455 (home-page "https://github.com/home-sweet-gnome/dash-to-panel/")
456 (license license:gpl2+)))
458 (define-public gnome-shell-extension-noannoyance
460 (name "gnome-shell-extension-noannoyance")
465 (url "https://github.com/BjoernDaase/noannoyance")
466 (commit "e37b5b3c31f577b4698bc6659bc9fec5ea9ac5d4")))
469 "0fa8l3xlh8kbq07y4385wpb908zm6x53z81q16xlmin97dln32hh"))
470 (file-name (git-file-name name version))))
471 (build-system copy-build-system)
474 '(("." "share/gnome-shell/extensions/noannoyance@daase.net"))))
475 (synopsis "Remove 'Window is ready' annotation")
476 (description "One of the many extensions that remove this message.
477 It uses ES6 syntax and claims to be more actively maintained than others.")
478 (home-page "https://extensions.gnome.org/extension/2182/noannoyance/")
479 (license license:gpl2)))
481 (define-public gnome-shell-extension-paperwm
483 (name "gnome-shell-extension-paperwm")
488 (url "https://github.com/paperwm/PaperWM")
490 (file-name (git-file-name name version))
493 "1ssnabwxrns36c61ppspjkr9i3qifv08pf2jpwl7cjv3pvyn4kly"))
495 '(begin (delete-file "schemas/gschemas.compiled")))))
496 (build-system copy-build-system)
499 '(("." "share/gnome-shell/extensions/paperwm@hedning:matrix.org"
500 #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$"
501 "\\.xml$" "\\.compiled$")))
503 (modify-phases %standard-phases
504 (add-before 'install 'compile-schemas
506 (with-directory-excursion "schemas"
510 `(("glib:bin" ,glib "bin"))) ; for glib-compile-schemas
511 (home-page "https://github.com/paperwm/PaperWM")
512 (synopsis "Tiled scrollable window management for GNOME Shell")
513 (description "PaperWM is an experimental GNOME Shell extension providing
514 scrollable tiling of windows and per monitor workspaces. It's inspired by paper
515 notebooks and tiling window managers.")
516 (license license:gpl3)))
518 (define-public numix-gtk-theme
520 (name "numix-gtk-theme")
525 (url "https://github.com/numixproject/numix-gtk-theme")
527 (file-name (git-file-name name version))
530 "12mw0kr0kkvg395qlbsvkvaqccr90cmxw5rrsl236zh43kj8grb7"))))
531 (build-system gnu-build-system)
534 (list (string-append "INSTALL_DIR="
535 (assoc-ref %outputs "out")
536 "/share/themes/Numix"))
539 (modify-phases %standard-phases
540 (delete 'configure)))) ; no configure script
542 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas
543 ("gnome-shell" ,gnome-shell)
546 ("ruby-sass" ,ruby-sass)))
547 (synopsis "Flat theme with light and dark elements")
548 (description "Numix is a modern flat theme with a combination of light and
549 dark elements. It supports GNOME, Unity, Xfce, and Openbox.")
550 (home-page "https://numixproject.github.io")
551 (license license:gpl3+)))
553 (define-public numix-theme
554 (deprecated-package "numix-theme" numix-gtk-theme))
556 (define-public papirus-icon-theme
557 (let ((version "0.0.0") ;; The package does not use semver
561 (name "papirus-icon-theme")
562 (version (git-version version revision tag))
567 (url "https://github.com/PapirusDevelopmentTeam/papirus-icon-theme")
571 "0yv19kl8jr2jmh9018b1qmnq68alw84vrmb35jm462qd3qzzdgah"))
572 (file-name (git-file-name name version))))
573 (build-system gnu-build-system)
576 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
578 (modify-phases %standard-phases
583 `(("gtk+:bin" ,gtk+ "bin")))
584 (home-page "https://git.io/papirus-icon-theme")
585 (synopsis "Fork of Paper icon theme with a lot of new icons and a few extras")
586 (description "Papirus is a fork of the icon theme Paper with a lot of new icons
587 and a few extra features.")
588 (license license:gpl3))))
590 (define-public vala-language-server
592 (name "vala-language-server")
593 ;; Note to maintainer: VLS must be built with a Vala toolchain the same
594 ;; version or newer. Therefore when you update this package you may need
595 ;; to update Vala too.
600 (url "https://github.com/benwaffle/vala-language-server")
602 (file-name (git-file-name name version))
604 (base32 "0chgfpci247skrvsiq1l8cas8sj2z6z42dlarka3df3qwxmh0if0"))))
605 (build-system meson-build-system)
606 (arguments '(#:glib-or-gtk? #t))
609 ("json-glib" ,json-glib)
610 ("jsonrpc-glib" ,jsonrpc-glib)
612 ("vala" ,vala-0.48)))
614 `(("pkg-config" ,pkg-config)))
615 (home-page "https://github.com/benwaffle/vala-language-server")
616 (synopsis "Language server for Vala")
617 (description "The Vala language server is an implementation of the Vala
618 language specification for the Language Server Protocol (LSP). This tool is
619 used in text editing environments to provide a complete and integrated
620 feature-set for programming Vala effectively.")
621 (license license:lgpl2.1+)))