1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2019 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>
8 ;;; This file is part of GNU Guix.
10 ;;; GNU Guix is free software; you can redistribute it and/or modify it
11 ;;; under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 3 of the License, or (at
13 ;;; your option) any later version.
15 ;;; GNU Guix is distributed in the hope that it will be useful, but
16 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23 (define-module (gnu packages gnome-xyz)
24 #:use-module (guix build-system trivial)
25 #:use-module (guix build-system gnu)
26 #:use-module (guix build-system copy)
27 #:use-module (guix build-system meson)
28 #:use-module (guix git-download)
29 #:use-module (guix packages)
30 #:use-module ((guix licenses) #:prefix license:)
31 #:use-module (gnu packages base)
32 #:use-module (gnu packages bash)
33 #:use-module (gnu packages gettext)
34 #:use-module (gnu packages glib)
35 #:use-module (gnu packages gnome)
36 #:use-module (gnu packages gtk)
37 #:use-module (gnu packages pkg-config)
38 #:use-module (gnu packages python-xyz)
39 #:use-module (gnu packages ssh)
40 #:use-module (gnu packages tls)
41 #:use-module (gnu packages ruby)
42 #:use-module (gnu packages xml))
44 (define-public matcha-theme
47 (version "2019-11-02")
53 (url "https://github.com/vinceliuice/matcha")
55 (file-name (git-file-name name version))
58 "0wci9ahap8kynq8cbyxr7aba9ndb1d4kiq42xvzr34vw1rhcahrr"))))
59 (build-system trivial-build-system)
61 '(#:modules ((guix build utils))
64 (use-modules (guix build utils))
65 (let* ((out (assoc-ref %outputs "out"))
66 (source (assoc-ref %build-inputs "source"))
67 (bash (assoc-ref %build-inputs "bash"))
68 (coreutils (assoc-ref %build-inputs "coreutils"))
69 (themesdir (string-append out "/share/themes")))
71 (string-append coreutils "/bin:"
72 (string-append bash "/bin:")))
73 (copy-recursively source (getcwd))
74 (patch-shebang "Install")
76 (invoke "./Install" "-d" themesdir)
79 `(("gtk-engines" ,gtk-engines)))
82 ("coreutils" ,coreutils)))
83 (synopsis "Flat design theme for GTK 3, GTK 2 and GNOME-Shell")
84 (description "Matcha is a flat Design theme for GTK 3, GTK 2 and
85 Gnome-Shell which supports GTK 3 and GTK 2 based desktop environments
86 like Gnome, Unity, Budgie, Pantheon, XFCE, Mate and others.")
87 (home-page "https://github.com/vinceliuice/matcha")
88 (license license:gpl3+)))
90 (define-public delft-icon-theme
92 (name "delft-icon-theme")
98 (url "https://github.com/madmaxms/iconpack-delft.git")
99 (commit (string-append "v" version))))
102 "1m3r4i4m3y3xsjb5f4bik0ylmi64amkfyr0y8pjbvv6gyj492mi6"))
103 (file-name (git-file-name name version))))
104 (build-system copy-build-system)
107 `(("." "share/icons" #:exclude ("README.md" "LICENSE" "logo.jpg")))
109 (modify-phases %standard-phases
110 (add-after 'unpack 'patch-index.theme
112 (substitute* "Delft/index.theme"
113 (("gnome") "Adwaita"))
115 (home-page "https://www.gnome-look.org/p/1199881/")
116 (synopsis "Continuation of Faenza icon theme with up to date app icons")
117 (description "Delft is a fork of the popular icon theme Faenza with up to
118 date app icons. It will stay optically close to the original Faenza icons,
119 which haven't been updated for some years. The new app icons are ported from
120 the Obsidian icon theme.")
121 (license license:gpl3)))
123 (define-public gnome-shell-extension-appindicator
125 (name "gnome-shell-extension-appindicator")
131 "https://github.com/ubuntu/gnome-shell-extension-appindicator.git")
132 (commit (string-append "v" version))))
135 "1fjhx23jqwv3d0smwhnjvc35gqhwk9p5f96ic22pfax653cn5vh8"))
136 (file-name (git-file-name name version))))
137 (build-system copy-build-system)
140 '(("." ,(string-append "share/gnome-shell/extensions/"
141 "appindicatorsupport@rgcjonas.gmail.com")))))
142 (synopsis "Adds KStatusNotifierItem support to GNOME Shell")
143 (description "This extension integrates Ubuntu AppIndicators
144 and KStatusNotifierItems (KDE's successor of the systray) into
146 (home-page "https://github.com/ubuntu/gnome-shell-extension-appindicator/")
147 (license license:gpl2+)))
149 (define-public gnome-shell-extension-dash-to-dock
151 (name "gnome-shell-extension-dash-to-dock")
156 (url "https://github.com/micheleg/dash-to-dock.git")
157 (commit (string-append "extensions.gnome.org-v"
161 "04krl6rxlp1qc97psraf2kwin7h0mx4c7pnfpi7vhplmvasrwkfh"))
162 (file-name (git-file-name name version))))
163 (build-system gnu-build-system)
166 #:make-flags (list (string-append "INSTALLBASE="
167 (assoc-ref %outputs "out")
168 "/share/gnome-shell/extensions"))
170 (modify-phases %standard-phases
172 (delete 'configure))))
174 `(("glib:bin" ,glib "bin")
175 ("intltool" ,intltool)
176 ("pkg-config" ,pkg-config)))
179 (synopsis "Transforms GNOME's dash into a dock")
180 (description "This extension moves the dash out of the
181 overview, transforming it into a dock for easier application launching and
182 faster window switching.")
183 (home-page "https://micheleg.github.io/dash-to-dock/")
184 (license license:gpl2+)))
186 (define-public gnome-shell-extension-gsconnect
188 (name "gnome-shell-extension-gsconnect")
189 ;; v28 is the last version to support GNOME 3.32
194 (url (string-append "https://github.com/andyholmes"
195 "/gnome-shell-extension-gsconnect.git"))
196 (commit (string-append "v" version))))
197 (file-name (git-file-name name version))
200 "0grqkzqm7mlkbzin4nx9w7bh5cgygph8pn0cvim4a4gg99nfcp5z"))))
201 (build-system meson-build-system)
204 (let* ((out (assoc-ref %outputs "out"))
205 (name+version (strip-store-file-name out))
206 (gschema-dir (string-append out
207 "/share/gsettings-schemas/"
209 "/glib-2.0/schemas"))
210 (gnome-shell (assoc-ref %build-inputs "gnome-shell"))
211 (openssh (assoc-ref %build-inputs "openssh"))
212 (openssl (assoc-ref %build-inputs "openssl")))
214 (string-append "-Dgnome_shell_libdir=" gnome-shell "/lib")
215 (string-append "-Dgsettings_schemadir=" gschema-dir)
216 (string-append "-Dopenssl_path=" openssl "/bin/openssl")
217 (string-append "-Dsshadd_path=" openssh "/bin/ssh-add")
218 (string-append "-Dsshkeygen_path=" openssh "/bin/ssh-keygen")
219 (string-append "-Dsession_bus_services_dir=" out "/share/dbus-1/services")
220 "-Dpost_install=true"))
222 (modify-phases %standard-phases
223 (add-before 'configure 'fix-paths
224 (lambda* (#:key inputs #:allow-other-keys)
225 (let* ((glib (assoc-ref inputs "glib:bin"))
226 (gapplication (string-append glib "/bin/gapplication"))
227 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
228 (substitute* "data/org.gnome.Shell.Extensions.GSConnect.desktop"
229 (("gapplication") gapplication))
234 (string-append "'use strict';\n\n"
235 "'" gi-typelib-path "'.split(':').forEach("
236 "path => imports.gi.GIRepository.Repository."
237 "prepend_search_path(path));"))))
238 '("src/extension.js" "src/prefs.js"))
240 (add-after 'install 'wrap-daemons
241 (lambda* (#:key inputs outputs #:allow-other-keys)
242 (let* ((out (assoc-ref outputs "out"))
244 (string-append out "/share/gnome-shell/extensions"
245 "/gsconnect@andyholmes.github.io/service"))
246 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
247 (wrap-program (string-append service-dir "/daemon.js")
248 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
251 `(("at-spi2-core" ,at-spi2-core)
253 ("evolution-data-server" ,evolution-data-server)
257 ("glib:bin" ,glib "bin")
259 ("gnome-shell" ,gnome-shell)
261 ("nautilus" ,nautilus)
264 ("python-nautilus" ,python-nautilus)
265 ("python-pygobject" ,python-pygobject)
268 `(("gettext" ,gettext-minimal)
269 ("gobject-introspection" ,gobject-introspection)
271 ("pkg-config" ,pkg-config)))
272 (home-page "https://github.com/andyholmes/gnome-shell-extension-gsconnect/wiki")
273 (synopsis "Connect GNOME Shell with your Android phone")
274 (description "GSConnect is a complete implementation of KDE Connect
275 especially for GNOME Shell, allowing devices to securely share content, like
276 notifications or files, and other features like SMS messaging and remote
278 (license license:gpl2)))
280 (define-public gnome-shell-extension-hide-app-icon
281 (let ((commit "4188aa5f4ba24901a053a0c3eb0d83baa8625eab")
284 (name "gnome-shell-extension-hide-app-icon")
285 (version (git-version "2.7" revision commit))
290 (url (string-append "https://github.com/michael-rapp"
291 "/gnome-shell-extension-hide-app-icon.git"))
295 "1i28n4bz6wrhn07vpxkr6l1ljyn7g8frp5xrr11z3z32h2hxxcd6"))
296 (file-name (git-file-name name version))))
297 (build-system gnu-build-system)
299 '(#:tests? #f ; no test target
300 #:make-flags (list (string-append "EXTENSIONS_DIR="
301 (assoc-ref %outputs "out")
302 "/share/gnome-shell/extensions"))
304 (modify-phases %standard-phases
305 (delete 'configure) ; no configure script
307 (lambda* (#:key outputs #:allow-other-keys)
308 (let ((out (assoc-ref outputs "out"))
309 (pre "/share/gnome-shell/extensions/")
310 (dir "hide-app-icon@mrapp.sourceforge.com"))
311 (copy-recursively dir (string-append out pre dir))
314 `(("glib" ,glib "bin")
315 ("intltool" ,intltool)))
318 (synopsis "Hide app icon from GNOME's panel")
319 (description "This extension allows to hide the icon and/or title of the
320 currently focused application in the top panel of the GNOME shell.")
322 "https://github.com/michael-rapp/gnome-shell-extension-hide-app-icon/")
324 ;; README.md and LICENSE.txt disagree -- the former claims v3, the
325 ;; latter v2. No mention of "or later" in either place or in the code.
329 (define-public gnome-shell-extension-dash-to-panel
331 (name "gnome-shell-extension-dash-to-panel")
336 (url "https://github.com/home-sweet-gnome/dash-to-panel.git")
337 (commit (string-append "v" version))))
340 "1phfx2pblygpcvsppsqqqflm7qnz46mqkw29hj0nv2dn69hf4xbc"))
341 (file-name (git-file-name name version))))
342 (build-system gnu-build-system)
345 #:make-flags (list (string-append "INSTALLBASE="
346 (assoc-ref %outputs "out")
347 "/share/gnome-shell/extensions")
348 (string-append "VERSION="
350 gnome-shell-extension-dash-to-panel)))
352 (modify-phases %standard-phases
354 (delete 'configure))))
356 `(("intltool" ,intltool)
357 ("pkg-config" ,pkg-config)))
360 ("glib" ,glib "bin")))
361 (synopsis "Icon taskbar for GNOME Shell")
362 (description "This extension moves the dash into the gnome main
363 panel so that the application launchers and system tray are combined
364 into a single panel, similar to that found in KDE Plasma and Windows 7+.")
365 (home-page "https://github.com/home-sweet-gnome/dash-to-panel/")
366 (license license:gpl2+)))
368 (define-public gnome-shell-extension-noannoyance
370 (name "gnome-shell-extension-noannoyance")
375 (url "https://github.com/BjoernDaase/noannoyance.git")
376 (commit "e37b5b3c31f577b4698bc6659bc9fec5ea9ac5d4")))
379 "0fa8l3xlh8kbq07y4385wpb908zm6x53z81q16xlmin97dln32hh"))
380 (file-name (git-file-name name version))))
381 (build-system copy-build-system)
384 '(("." "share/gnome-shell/extensions/noannoyance@daase.net"))))
385 (synopsis "Remove 'Window is ready' annotation")
386 (description "One of the many extensions that remove this message.
387 It uses ES6 syntax and claims to be more actively maintained than others.")
388 (home-page "https://extensions.gnome.org/extension/2182/noannoyance/")
389 (license license:gpl2)))
391 (define-public gnome-shell-extension-paperwm
393 (name "gnome-shell-extension-paperwm")
398 (url "https://github.com/paperwm/PaperWM.git")
400 (file-name (git-file-name name version))
403 "1qry75f696pgmd9yzqvwhq5h6cipin2fvk7h881g29cjcpxim37a"))
405 '(begin (delete-file "schemas/gschemas.compiled")))))
406 (build-system copy-build-system)
409 '(("." "share/gnome-shell/extensions/paperwm@hedning:matrix.org"
410 #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$"
411 "\\.xml$" "\\.compiled$")))
413 (modify-phases %standard-phases
414 (add-before 'install 'compile-schemas
416 (with-directory-excursion "schemas"
420 `(("glib:bin" ,glib "bin"))) ; for glib-compile-schemas
421 (home-page "https://github.com/paperwm/PaperWM")
422 (synopsis "Tiled scrollable window management for GNOME Shell")
423 (description "PaperWM is an experimental GNOME Shell extension providing
424 scrollable tiling of windows and per monitor workspaces. It's inspired by paper
425 notebooks and tiling window managers.")
426 (license license:gpl3)))
428 (define-public numix-theme
435 (url "https://github.com/numixproject/numix-gtk-theme.git")
437 (file-name (git-file-name name version))
440 "12mw0kr0kkvg395qlbsvkvaqccr90cmxw5rrsl236zh43kj8grb7"))))
441 (build-system gnu-build-system)
443 '(#:make-flags (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
445 (modify-phases %standard-phases
449 `(("glib:bin" ,glib "bin") ; for glib-compile-schemas
450 ("gnome-shell" ,gnome-shell)
453 ("ruby-sass" ,ruby-sass)))
454 (synopsis "Flat theme with light and dark elements")
455 (description "Numix is a modern flat theme with a combination of light and
456 dark elements. It supports GNOME, Unity, Xfce, and Openbox.")
457 (home-page "https://numixproject.github.io")
458 (license license:gpl3+)))
460 (define-public papirus-icon-theme
461 (let ((version "0.0.0") ;; The package does not use semver
465 (name "papirus-icon-theme")
466 (version (git-version version revision tag))
471 (url "https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git")
475 "0lnz1kmz28xh1f4slbsx7ycji5hgszyiyprbf5w5fbjhvi5gzw1h"))
476 (file-name (git-file-name name version))))
477 (build-system gnu-build-system)
480 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
482 (modify-phases %standard-phases
487 `(("gtk+:bin" ,gtk+ "bin")))
488 (home-page "https://git.io/papirus-icon-theme")
489 (synopsis "Fork of Paper icon theme with a lot of new icons and a few extras")
490 (description "Papirus is a fork of the icon theme Paper with a lot of new icons
491 and a few extra features.")
492 (license license:gpl3))))