aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/version-control.scm
blob: 9d53f9358d407d9c0539be1f1afd3c813b721ee5 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 ng0 <ng0@n0.is>
;;; Copyright © 2016 Sou Bunnbu <iyzsong@member.fsf.org>
;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
;;; Copyright © 2018 Christopher Baines <mail@cbaines.net>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu services version-control)
  #:use-module (gnu services)
  #:use-module (gnu services base)
  #:use-module (gnu services shepherd)
  #:use-module (gnu services web)
  #:use-module (gnu system shadow)
  #:use-module (gnu packages version-control)
  #:use-module (gnu packages admin)
  #:use-module (guix records)
  #:use-module (guix gexp)
  #:use-module (guix store)
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-26)
  #:use-module (ice-9 format)
  #:use-module (ice-9 match)
  #:export (git-daemon-service
            git-daemon-service-type
            git-daemon-configuration
            git-daemon-configuration?

            git-http-configuration
            git-http-configuration?
            git-http-nginx-location-configuration

            <gitolite-configuration>
            gitolite-configuration
            gitolite-configuration-package
            gitolite-configuration-user
            gitolite-configuration-rc-file
            gitolite-configuration-admin-pubkey

            <gitolite-rc-file>
            gitolite-rc-file
            gitolite-rc-file-umask
            gitolite-rc-file-git-config-keys
            gitolite-rc-file-roles
            gitolite-rc-file-enable

            gitolite-service-type))

;;; Commentary:
;;;
;;; Version Control related services.
;;;
;;; Code:


;;;
;;; Git daemon.
;;;

(define-record-type* <git-daemon-configuration>
  git-daemon-configuration
  make-git-daemon-configuration
  git-daemon-configuration?
  (package          git-daemon-configuration-package        ;package
                    (default git))
  (export-all?      git-daemon-configuration-export-all     ;boolean
                    (default #f))
  (base-path        git-daemon-configuration-base-path      ;string | #f
                    (default "/srv/git"))
  (user-path        git-daemon-configuration-user-path      ;string | #f
                    (default #f))
  (listen           git-daemon-configuration-listen         ;list of string
                    (default '()))
  (port             git-daemon-configuration-port           ;number | #f
                    (default #f))
  (whitelist        git-daemon-configuration-whitelist      ;list of string
                    (default '()))
  (extra-options    git-daemon-configuration-extra-options  ;list of string
                    (default '())))

(define git-daemon-shepherd-service
  (match-lambda
    (($ <git-daemon-configuration>
        package export-all? base-path user-path
        listen port whitelist extra-options)
     (let* ((git     (file-append package "/bin/git"))
            (command `(,git
                       "daemon" "--syslog" "--reuseaddr"
                       ,@(if export-all?
                             '("--export-all")
                             '())
                       ,@(if base-path
                             `(,(string-append "--base-path=" base-path))
                             '())
                       ,@(if user-path
                             `(,(string-append "--user-path=" user-path))
                             '())
                       ,@(map (cut string-append "--listen=" <>) listen)
                       ,@(if port
                             `(,(string-append
                                 "--port=" (number->string port)))
                             '())
                       ,@extra-options
                       ,@whitelist)))
       (list (shepherd-service
              (documentation "Run the git-daemon.")
              (requirement '(networking))
              (provision '(git-daemon))
              (start #~(make-forkexec-constructor '#$command
                                                  #:user "git-daemon"
                                                  #:group "git-daemon"))
              (stop #~(make-kill-destructor))))))))

(define %git-daemon-accounts
  ;; User account and group for git-daemon.
  (list (user-group
         (name "git-daemon")
         (system? #t))
        (user-account
         (name "git-daemon")
         (system? #t)
         (group "git-daemon")
         (comment "Git daemon user")
         (home-directory "/var/empty")
         (shell (file-append shadow "/sbin/nologin")))))

(define (git-daemon-activation config)
  "Return the activation gexp for git-daemon using CONFIG."
  (let ((base-path (git-daemon-configuration-base-path config)))
    #~(begin
        (use-modules (guix build utils))
        ;; Create the 'base-path' directory when it's not '#f'.
        (and=> #$base-path mkdir-p))))

(define git-daemon-service-type
  (service-type
   (name 'git-daemon)
   (extensions
    (list (service-extension shepherd-root-service-type
                             git-daemon-shepherd-service)
          (service-extension account-service-type
                             (const %git-daemon-accounts))
          (service-extension activation-service-type
                             git-daemon-activation)))
   (description
    "Expose Git repositories over the insecure @code{git://} TCP-based
protocol.")
   (default-value (git-daemon-configuration))))

(define* (git-daemon-service #:key (config (git-daemon-configuration)))
  "Return a service that runs @command{git daemon}, a simple TCP server to
expose repositories over the Git protocol for annoymous access.

The optional @var{config} argument should be a
@code{<git-daemon-configuration>} object, by default it allows read-only
access to exported repositories under @file{/srv/git}."
  (service git-daemon-service-type config))


;;;
;;; HTTP access.  Add the result of calling
;;; git-http-nginx-location-configuration to an nginx-server-configuration's
;;; "locations" field.
;;;

(define-record-type* <git-http-configuration>
  git-http-configuration
  make-git-http-configuration
  git-http-configuration?
  (package          git-http-configuration-package        ;package
                    (default git))
  (git-root         git-http-configuration-git-root       ;string
                    (default "/srv/git"))
  (export-all?      git-http-configuration-export-all?    ;boolean
                    (default #f))
  (uri-path         git-http-configuration-uri-path       ;string
                    (default "/git/"))
  (fcgiwrap-socket  git-http-configuration-fcgiwrap-socket ;string
                    (default "127.0.0.1:9000")))

(define* (git-http-nginx-location-configuration #:optional
                                                (config
                                                 (git-http-configuration)))
  (match config
    (($ <git-http-configuration> package git-root export-all?
                                 uri-path fcgiwrap-socket)
     (nginx-location-configuration
      (uri (string-append "~ /" (string-trim-both uri-path #\/) "(/.*)"))
      (body
       (list
        (list "fastcgi_pass " fcgiwrap-socket ";")
        (list "fastcgi_param SCRIPT_FILENAME "
              package "/libexec/git-core/git-http-backend"
              ";")
        "fastcgi_param QUERY_STRING $query_string;"
        "fastcgi_param REQUEST_METHOD $request_method;"
        "fastcgi_param CONTENT_TYPE $content_type;"
        "fastcgi_param CONTENT_LENGTH $content_length;"
        (if export-all?
            "fastcgi_param GIT_HTTP_EXPORT_ALL \"\";"
            "")
        (list "fastcgi_param GIT_PROJECT_ROOT " git-root ";")
        "fastcgi_param PATH_INFO $1;"))))))


;;;
;;; Gitolite
;;;

(define-record-type* <gitolite-rc-file>
  gitolite-rc-file make-gitolite-rc-file
  gitolite-rc-file?
  (umask           gitolite-rc-file-umask
                   (default #o0077))
  (git-config-keys gitolite-rc-file-git-config-keys
                   (default ""))
  (roles           gitolite-rc-file-roles
                   (default '(("READERS" . 1)
                              ("WRITERS" . 1))))
  (enable          gitolite-rc-file-enable
                   (default '("help"
                              "desc"
                              "info"
                              "perms"
                              "writable"
                              "ssh-authkeys"
                              "git-config"
                              "daemon"
                              "gitweb"))))

(define-gexp-compiler (gitolite-rc-file-compiler
                       (file <gitolite-rc-file>) system target)
  (match file
    (($ <gitolite-rc-file> umask git-config-keys roles enable)
     (apply text-file* "gitolite.rc"
      `("%RC = (\n"
        "    UMASK => " ,(format #f "~4,'0o" umask) ",\n"
        "    GIT_CONFIG_KEYS => '" ,git-config-keys "',\n"
        "    ROLES => {\n"
        ,@(map (match-lambda
                 ((role . value)
                  (simple-format #f "        ~A => ~A,\n" role value)))
               roles)
        "    },\n"
        "\n"
        "    ENABLE => [\n"
        ,@(map (lambda (value)
                 (simple-format #f "        '~A',\n" value))
               enable)
        "    ],\n"
        ");\n"
        "\n"
        "1;\n")))))

(define-record-type* <gitolite-configuration>
  gitolite-configuration make-gitolite-configuration
  gitolite-configuration?
  (package        gitolite-configuration-package
                  (default gitolite))
  (user           gitolite-configuration-user
                  (default "git"))
  (group          gitolite-configuration-group
                  (default "git"))
  (home-directory gitolite-configuration-home-directory
                  (default "/var/lib/gitolite"))
  (rc-file        gitolite-configuration-rc-file
                  (default (gitolite-rc-file)))
  (admin-pubkey   gitolite-configuration-admin-pubkey))

(define gitolite-accounts
  (match-lambda
    (($ <gitolite-configuration> package user group home-directory
                                 rc-file admin-pubkey)
     ;; User group and account to run Gitolite.
     (list (user-group (name user) (system? #t))
           (user-account
            (name user)
            (group group)
            (system? #t)
            (comment "Gitolite user")
            (home-directory home-directory))))))

(define gitolite-activation
  (match-lambda
    (($ <gitolite-configuration> package user group home
                                 rc-file admin-pubkey)
     #~(begin
         (use-modules (ice-9 match)
                      (guix build utils))

         (let* ((user-info (getpwnam #$user))
                (admin-pubkey #$admin-pubkey)
                (pubkey-file (string-append
                              #$home "/"
                              (basename
                               (strip-store-file-name admin-pubkey)))))

           (simple-format #t "guix: gitolite: installing ~A\n" #$rc-file)
           (copy-file #$rc-file #$(string-append home "/.gitolite.rc"))

           ;; The key must be writable, so copy it from the store
           (copy-file admin-pubkey pubkey-file)

           (chmod pubkey-file #o500)
           (chown pubkey-file
                  (passwd:uid user-info)
                  (passwd:gid user-info))

           ;; Set the git configuration, to avoid gitolite trying to use
           ;; the hostname command, as the network might not be up yet
           (with-output-to-file #$(string-append home "/.gitconfig")
             (lambda ()
               (display "[user]
        name = GNU Guix
        email = guix@localhost
")))
           ;; Run Gitolite setup, as this updates the hooks and include the
           ;; admin pubkey if specified. The admin pubkey is required for
           ;; initial setup, and will replace the previous key if run after
           ;; initial setup
           (match (primitive-fork)
             (0
              ;; Exit with a non-zero status code if an exception is thrown.
              (dynamic-wind
                (const #t)
                (lambda ()
                  (setenv "HOME" (passwd:dir user-info))
                  (setenv "USER" #$user)
                  (setgid (passwd:gid user-info))
                  (setuid (passwd:uid user-info))
                  (primitive-exit
                   (system* #$(file-append package "/bin/gitolite")
                            "setup"
                            "-m" "gitolite setup by GNU Guix"
                            "-pk" pubkey-file)))
                (lambda ()
                  (primitive-exit 1))))
             (pid (waitpid pid)))

           (when (file-exists? pubkey-file)
             (delete-file pubkey-file)))))))

(define gitolite-service-type
  (service-type
   (name 'gitolite)
   (extensions
    (list (service-extension activation-service-type
                             gitolite-activation)
          (service-extension account-service-type
                             gitolite-accounts)
          (service-extension profile-service-type
                             ;; The Gitolite package in Guix uses
                             ;; gitolite-shell in the authorized_keys file, so
                             ;; gitolite-shell needs to be on the PATH for
                             ;; gitolite to work.
                             (lambda (config)
                               (list
                                (gitolite-configuration-package config))))))
   (description
    "Setup @command{gitolite}, a Git hosting tool providing access over SSH..
By default, the @code{git} user is used, but this is configurable.
Additionally, Gitolite can integrate with with tools like gitweb or cgit to
provide a web interface to view selected repositories.")))
s and translations from ;; source, as they are generated as part of build. Upstream ;; includes them for people who want to run the software ;; directly from source tree. '(begin (delete-file "schemas/gschemas.compiled") (for-each delete-file (find-files "locale" "\\.mo$")))))) (build-system copy-build-system) (arguments (list #:install-plan #~'(("." "share/gnome-shell/extensions/clipboard-indicator@tudmotu.com" #:include-regexp ("\\.css$" "\\.compiled$" "\\.js(on)?$" "\\.mo$" "\\.xml$"))) #:phases #~(modify-phases %standard-phases (add-before 'install 'compile-schemas (lambda _ (with-directory-excursion "schemas" (invoke "glib-compile-schemas" "."))))))) (native-inputs (list `(,glib "bin") gettext-minimal)) (home-page "https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator") (synopsis "Clipboard manager extension for GNOME Shell") (description "Clipboard Indicator is a clipboard manager for GNOME Shell that caches clipboard history.") (license license:expat))) (define-public gnome-shell-extension-customize-ibus (package (name "gnome-shell-extension-customize-ibus") (version "86") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/openSUSE/Customize-IBus.git") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1psnbhqbqrp68dri0q98y7ikwz9z3701lcy8vvgixb2bh71y7519")))) (build-system gnu-build-system) (arguments (list #:make-flags #~(list (string-append "VERSION=" #$version) (string-append "INSTALLBASE=" #$output "/share/gnome-shell/extensions")) #:tests? #f ; No test target #:phases #~(modify-phases %standard-phases (delete 'bootstrap) (delete 'configure)))) (native-inputs (list gettext-minimal `(,glib "bin"))) (propagated-inputs (list ibus)) (home-page "https://github.com/openSUSE/Customize-IBus") (synopsis "GNOME Shell Extension for IBus Customization") (description "Customize IBus provides full customization of appearance, behavior, system tray and input source indicator for IBus.") (license license:gpl3+))) (define-public gnome-shell-extension-topicons-redux (deprecated-package "gnome-shell-extension-topicons-redux" gnome-shell-extension-appindicator)) (define-public gnome-shell-extension-dash-to-dock (package (name "gnome-shell-extension-dash-to-dock") (version "79") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/micheleg/dash-to-dock") (commit (string-append "extensions.gnome.org-v" version)))) (sha256 (base32 "0fsfhgpg8441x28jzhjspb9i9c5502c2fcgdvfggcsmz0sf3v95y")) (file-name (git-file-name name version)))) (build-system gnu-build-system) (arguments (list #:tests? #f #:make-flags #~(list (string-append "INSTALLBASE=" #$output "/share/gnome-shell/extensions")) #:phases #~(modify-phases %standard-phases (delete 'bootstrap) (delete 'configure)))) (native-inputs (list `(,glib "bin") intltool pkg-config sassc)) (propagated-inputs (list glib)) (synopsis "Transforms GNOME's dash into a dock") (description "This extension moves the dash out of the overview, transforming it into a dock for easier application launching and faster window switching.") (home-page "https://micheleg.github.io/dash-to-dock/") (license license:gpl2+))) (define-public gnome-shell-extension-gsconnect (package (name "gnome-shell-extension-gsconnect") (version "55") (source (origin (method git-fetch) (uri (git-reference (url (string-append "https://github.com/GSConnect" "/gnome-shell-extension-gsconnect.git")) (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "158qbjl6m807g0fy15dvhwwwy6z8r0g7kh9gjyhm7n3y14v5p8wz")))) (build-system meson-build-system) (arguments (list #:tests? #f ;; every test fails #:configure-flags #~(let ((out #$output) (gnome-shell #$(this-package-input "gnome-shell")) (openssh #$(this-package-input "openssh")) (openssl #$(this-package-input "openssl"))) (list (string-append "-Dgnome_shell_libdir=" gnome-shell "/lib") (string-append "-Dopenssl_path=" openssl "/bin/openssl") (string-append "-Dsshadd_path=" openssh "/bin/ssh-add") (string-append "-Dsshkeygen_path=" openssh "/bin/ssh-keygen") (string-append "-Dsession_bus_services_dir=" out "/share/dbus-1/services"))) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'skip-post-installation (lambda _ (substitute* "meson.build" (("gtk_update_icon_cache: true") "gtk_update_icon_cache: false") (("update_desktop_database: true") "update_desktop_database: false")))) (add-before 'configure 'fix-paths (lambda* (#:key inputs #:allow-other-keys) (let ((gapplication (search-input-file inputs "/bin/gapplication")) (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) (substitute* "data/org.gnome.Shell.Extensions.GSConnect.desktop.in" (("gapplication") gapplication)) (for-each (lambda (file) (substitute* file (("'use strict';") (string-append "'use strict';\n\n" "'" gi-typelib-path "'.split(':').forEach(" "path => imports.gi.GIRepository.Repository." "prepend_search_path(path));")))) '("src/extension.js" "src/prefs.js"))))) (add-after 'install 'wrap-daemons (lambda _ (let* ((out #$output) (service-dir (string-append out "/share/gnome-shell/extensions" "/gsconnect@andyholmes.github.io/service")) (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) (wrap-program (string-append service-dir "/daemon.js") `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))))))) (inputs (list at-spi2-core bash-minimal caribou evolution-data-server gjs glib `(,glib "bin") ;for /bin/gapplication gsound gnome-shell gtk+ nautilus openssh openssl python-pygobject upower)) (native-inputs (list gettext-minimal gobject-introspection libxml2 pkg-config)) (home-page "https://github.com/GSConnect/gnome-shell-extension-gsconnect/wiki") (synopsis "Connect GNOME Shell with your Android phone") (description "GSConnect is a complete implementation of KDE Connect especially for GNOME Shell, allowing devices to securely share content, like notifications or files, and other features like SMS messaging and remote control.") (license license:gpl2))) (define-public gnome-shell-extension-just-perfection (package (name "gnome-shell-extension-just-perfection") (version "26.0") (source (origin (method git-fetch) (uri (git-reference (url "https://gitlab.gnome.org/jrahmatzadeh/just-perfection/") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0dvq2mb04b557g9nz4pm90x2c2jc1dwwbg2is1gkx38yk0dsj6r3")))) (build-system copy-build-system) (arguments (list #:install-plan #~'(("src" "share/gnome-shell/extensions/just-perfection-desktop@just-perfection" #:include-regexp ("\\.css$" "\\.compiled$" "\\.js(on)?$" "\\.ui$")) ("locale" "share/gnome-shell/extensions/just-perfection-desktop@just-perfection/")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'drop-executable-bits (lambda _ (for-each (lambda (file) (let ((stat (lstat file))) (chmod file (logand (stat:mode stat) (lognot #o111))))) (find-files "." #:directories? #f)))) (add-before 'install 'build (lambda _ (invoke "glib-compile-schemas" "src/schemas") (for-each (lambda (file) (let* ((base (basename file)) (noext (substring base 0 (- (string-length base) 3))) (dest (string-append "locale/" noext "/LC_MESSAGES/")) (out (string-append dest "just-perfection.mo"))) (mkdir-p dest) (invoke "msgfmt" "-c" file "-o" out))) (find-files "po" "\\.po$"))))))) (native-inputs (list `(,glib "bin") gettext-minimal)) (home-page "https://gitlab.gnome.org/jrahmatzadeh/just-perfection") (synopsis "Customize GNOME Shell behaviour") (description "Just Perfection allows you to change various settings, that GNOME Shell itself does not provide out of the box, such as the ability to hide certain elements or change animation speeds.") (license license:gpl3))) (define-public gnome-shell-extension-hide-app-icon (deprecated-package "gnome-shell-extension-hide-app-icon" gnome-shell-extension-just-perfection)) (define-public gnome-shell-extension-dash-to-panel (package (name "gnome-shell-extension-dash-to-panel") (version "56") ;Compatible with GNOME 44 (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/home-sweet-gnome/dash-to-panel") (commit (string-append "v" version)))) (sha256 (base32 "17rm3wjj8zfdxgh5vp5f35vgd4mc9f9c2w77hac4vyvkgvwfzcnn")) (file-name (git-file-name name version)))) (build-system gnu-build-system) (arguments (list #:tests? #f #:make-flags #~(list (string-append "INSTALLBASE=" #$output "/share/gnome-shell/extensions") (string-append "VERSION=" #$version)) #:phases #~(modify-phases %standard-phases (delete 'bootstrap) (delete 'configure)))) (native-inputs (list `(,glib "bin") intltool pkg-config)) (propagated-inputs (list glib)) (synopsis "Icon taskbar for GNOME Shell") (description "This extension moves the dash into the gnome main panel so that the application launchers and system tray are combined into a single panel, similar to that found in KDE Plasma and Windows 7+.") (home-page "https://github.com/home-sweet-gnome/dash-to-panel/") (license license:gpl2+))) (define-public gnome-shell-extension-noannoyance ;; There are different forks of the NoAnnoyance extension. This is the one ;; named “NoAnnoyance (fork)” at ;; https://extensions.gnome.org/extension/6109/noannoyance-fork/ because it ;; supports newer GNOME Shell versions than the previously used “NoAnnoyance ;; v2”. (let ((commit "5e9e6a1878d2a1d961f5d59505f15339c5b7e17e") ;; “NoAnnoyance v2” version 17 correlates with ;; c6804a47063659f9f48d13a0942b78ce98aac72b, from which we count ;; commits. (revision "6")) (package (name "gnome-shell-extension-noannoyance") (version (git-version "17" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jirkavrba/noannoyance") (commit commit))) (sha256 (base32 "0br9zrwvn499kh3db84hhw1kl02jpchwb5ldfp892p15vwih8yrf")) (file-name (git-file-name name version)))) (build-system copy-build-system) (arguments (list #:install-plan #~'(("." "share/gnome-shell/extensions/noannoyance@vrba.dev")))) (synopsis "Remove 'Window is ready' annotation") (description "One of the many extensions that remove this message. It uses ES6 syntax and claims to be more actively maintained than others.") (home-page "https://extensions.gnome.org/extension/2182/noannoyance/") (license license:gpl2)))) (define-public gnome-shell-extension-paperwm (package (name "gnome-shell-extension-paperwm") (version "44.17.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/paperwm/PaperWM") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1d91k9qih81wckqf6554kf8grv6q61rkk4g776g0ijpmf35ljdin")) (snippet '(begin (delete-file "schemas/gschemas.compiled"))))) (build-system copy-build-system) (arguments (list #:install-plan #~'(("." "share/gnome-shell/extensions/paperwm@paperwm.github.com" #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$" "\\.xml$" "\\.compiled$" "\\.svg$"))) #:phases #~(modify-phases %standard-phases (add-before 'install 'compile-schemas (lambda _ (with-directory-excursion "schemas" (invoke "make"))))))) (native-inputs (list `(,glib "bin"))) ; for glib-compile-schemas (home-page "https://github.com/paperwm/PaperWM") (synopsis "Tiled scrollable window management for GNOME Shell") (description "PaperWM is an experimental GNOME Shell extension providing scrollable tiling of windows and per monitor workspaces. It's inspired by paper notebooks and tiling window managers.") (license license:gpl3))) (define-public gnome-shell-extension-night-theme-switcher (package (name "gnome-shell-extension-night-theme-switcher") (version "74") (source (origin (method git-fetch) (uri (git-reference (url "https://gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension") (commit version))) (sha256 (base32 "1hiydjyn7shc32i81r70sqip9p3hhig7pqq1h7hsz9bc4qlyri7b")) (file-name (git-file-name name version)))) (build-system meson-build-system) (native-inputs (list pkg-config (list glib "bin"))) (synopsis "Automatic theme switcher for GNOME Shell") (description "Automatically toggle your GNOME desktop's color scheme between light and dark, switch backgrounds and run custom commands at sunset and sunrise.") (home-page "https://nightthemeswitcher.romainvigier.fr") (license license:gpl2+))) (define-public gpaste (package (name "gpaste") (version "44.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/Keruspe/GPaste") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1amfr8hwf7401xa3fzaa8w17w3v3lxx0fkr7rqkkyfy57iavrykk")) (patches (search-patches "gpaste-fix-paths.patch")))) (build-system meson-build-system) (native-inputs (list gcr gettext-minimal gobject-introspection (list glib "bin") ; for glib-compile-resources pkg-config vala)) (inputs (list appstream-glib desktop-file-utils ; for update-desktop-database gjs gtk+ mutter libadwaita)) (arguments (list #:glib-or-gtk? #true #:configure-flags #~(list (string-append "-Dcontrol-center-keybindings-dir=" #$output "/share/gnome-control-center/keybindings") (string-append "-Ddbus-services-dir=" #$output "/share/dbus-1/services") (string-append "-Dsystemd-user-unit-dir=" #$output "/etc/systemd/user")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-introspection-install-dir (lambda _ (substitute* "src/libgpaste/gpaste/gpaste-settings.c" (("@gschemasCompiled@") (string-append #$output "/share/glib-2.0/schemas/"))) (substitute* '("src/gnome-shell/extension.js" "src/gnome-shell/prefs.js") (("@typelibPath@") (string-append #$output "/lib/girepository-1.0/")))))))) (home-page "https://github.com/Keruspe/GPaste") (synopsis "Clipboard management system for GNOME Shell") (description "GPaste is a clipboard manager, a tool which allows you to keep a trace of what you’re copying and pasting. Is is really useful when you go through tons of documentation and you want to keep around a bunch of functions you might want to use, for example. The clipboard manager will store an history of everything you do, so that you can get back to older copies you now want to paste.") (license license:bsd-2))) (define-public gnome-shell-extension-v-shell (package (name "gnome-shell-extension-v-shell") (version "37") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/G-dH/vertical-workspaces") (commit (string-append "v" version)))) (sha256 (base32 "1h9f3g1dswxkka0yyj51610w86mwl46ylch19b51gj5mmxlyvzlv")) (file-name (git-file-name name version)))) (build-system copy-build-system) (arguments (list #:install-plan #~'(("." #$(string-append "share/gnome-shell/extensions/" "vertical-workspaces@G-dH.github.com") #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$" "\\.xml$" "\\.compiled$" "\\.gresource$"))) #:phases #~(modify-phases %standard-phases (add-before 'install 'build (lambda _ (invoke "make" "all")))))) (native-inputs (list gettext-minimal `(,glib "bin"))) (home-page "https://github.com/G-dH/vertical-workspaces") (synopsis "Shell configuration with horizontal or vertical workspaces") (description "V-Shell (Vertical Workspaces) lets the user configure different parts of the shell, including panels, corners, workspaces.") (license license:gpl3))) (define-public gnome-shell-extension-vertical-overview (deprecated-package "gnome-shell-extension-vertical-overview" gnome-shell-extension-v-shell)) (define-public gnome-shell-extension-burn-my-windows (package (name "gnome-shell-extension-burn-my-windows") (version "40") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/Schneegans/Burn-My-Windows/") (commit (string-append "v" version)))) (sha256 (base32 "16n6ilszdn67835clqlr4flna69x9k00k5qrm55765dv2ny9jdcq")) (file-name (git-file-name name version)))) (build-system copy-build-system) (arguments (list #:install-plan #~'(("." #$(string-append "share/gnome-shell/extensions/" "burn-my-windows@schneegans.github.com") #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$" "\\.xml$" "\\.compiled$" "\\.gresource$"))) #:phases #~(modify-phases %standard-phases (add-before 'install 'compile-resources (lambda _ (invoke "make" "resources/burn-my-windows.gresource"))) (add-before 'install 'compile-schemas (lambda _ (with-directory-excursion "schemas" (invoke "glib-compile-schemas" "."))))))) (native-inputs (list `(,glib "bin"))) ; for glib-compile-resources (home-page "https://github.com/Schneegans/Burn-My-Windows") (synopsis "Application closing effects extension") (description "Burn My Windows is a shell extension that stylizes the animation of closing windowed applications.") (license license:gpl3))) (define-public gnome-shell-extension-blur-my-shell (package (name "gnome-shell-extension-blur-my-shell") (version "47") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/aunetx/blur-my-shell") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1a8prh6893zk8rnfi9q7waga2x7kx564jzmsdyhiffdbazbv8p6y")))) (build-system copy-build-system) (arguments '(#:install-plan (let ((extension "share/gnome-shell/extensions/blur-my-shell@aunetx")) `(("src/" ,extension) ("resources/" ,extension #:include-regexp ("\\.svg$" "\\.ui")) ("." ,extension #:exclude-regexp ("src/" "resources/") #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$" "\\.xml$" "\\.compiled$")))) #:phases (modify-phases %standard-phases (add-after 'unpack 'compile-schemas (lambda _ (with-directory-excursion "schemas" (invoke "glib-compile-schemas" "."))))))) (native-inputs (list (list glib "bin"))) ; for glib-compile-schemas (home-page "https://github.com/aunetx/blur-my-shell") (synopsis "Blurs different parts of the GNOME Shell") (description "Blur My Shell adds a blur look to different parts of the GNOME Shell, including the top panel, dash and overview.") (license license:gpl3))) (define-public gnome-shell-extension-radio (package (name "gnome-shell-extension-radio") (version "21") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/hslbck/gnome-shell-extension-radio") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1ghk95q3lhliz3his58hh2ql4p9csh6llzip412vwf29zdkr58s2")))) (build-system copy-build-system) (arguments (list #:install-plan #~'(("radio@hslbck.gmail.com" "/share/gnome-shell/extensions/")) #:phases #~(modify-phases %standard-phases (add-before 'install 'glib-compile-schemas (lambda _ (invoke "glib-compile-schemas" "radio@hslbck.gmail.com/schemas")))))) (native-inputs (list `(,glib "bin"))) (home-page "https://github.com/hslbck/gnome-shell-extension-radio") (synopsis "Internet radio for GNOME Shell") (description "This extension implements an internet radio player directly inside GNOME Shell. It can manage stations and play streams.") (license license:gpl3+))) (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 (list #: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 displaying computer resource/sensor stats") (description "Vitals is a GNOME Shell extension that can display the computer temperature, voltage, fan speed, memory usage and CPU load from the top menu bar of the GNOME Shell.") (license license:gpl2+))) (define-public arc-theme (package (name "arc-theme") (version "20221218") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jnsh/arc-theme") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0yznqjz1a1mcwks8z7pybgzrjiwg978bfpdmkaq926wy82qslngd")))) (build-system meson-build-system) (arguments '(#:configure-flags '("-Dthemes=gnome-shell,gtk2,gtk3,gtk4,metacity,plank,unity,xfwm") #:phases (modify-phases %standard-phases (add-before 'build 'set-home ;placate Inkscape (lambda _ (setenv "HOME" (getcwd))))))) (native-inputs (list `(,glib "bin") ; for glib-compile-resources gnome-shell gtk+ inkscape/stable optipng pkg-config python sassc/libsass-3.5)) (inputs (list gtk-engines)) ;for gtk+-2 to work properly (synopsis "Flat GTK+ theme with transparent elements") (description "Arc is a flat theme with transparent elements for GTK 3, GTK 2, and GNOME Shell which supports GTK 3 and GTK 2 based desktop environments like GNOME, Unity, Budgie, Pantheon, XFCE, Mate, etc.") (home-page "https://github.com/horst3180/arc-theme") ;; No "or later" language found. (license license:gpl3+))) (define-public greybird-gtk-theme (package (name "greybird-gtk-theme") (version "3.22.13") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/shimmerproject/Greybird") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "154qawiga792iimkpk3a6q8f4gm4r158wmsagkbqqbhj33kxgxhg")))) (build-system meson-build-system) (native-inputs (list gtk+ `(,glib "bin") ; for "glib-compile-resources" (librsvg-for-system) pkg-config ruby-sass sassc)) (home-page "https://shimmerproject.org/") (synopsis "Grey GTK+ theme based on Bluebird") (description "Greybird is a grey derivative of the Bluebird theme by the Shimmer Project. It supports GNOME, Unity, and Xfce.") (license (list license:gpl2+ license:cc-by-sa3.0)))) (define-public matcha-theme (package (name "matcha-theme") (version "2021-01-01") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/vinceliuice/Matcha-gtk-theme") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1pa6ra87wlq0gwz4n03l6xv0pxiamr5dygycvppms8v6xyc2aa0r")))) (build-system trivial-build-system) (arguments '(#:modules ((guix build utils)) #:builder (begin (use-modules (guix build utils)) (let* ((out (assoc-ref %outputs "out")) (source (assoc-ref %build-inputs "source")) (bash (assoc-ref %build-inputs "bash")) (coreutils (assoc-ref %build-inputs "coreutils")) (themesdir (string-append out "/share/themes"))) (setenv "PATH" (string-append coreutils "/bin:" (string-append bash "/bin:"))) (copy-recursively source (getcwd)) (patch-shebang "install.sh") (mkdir-p themesdir) (invoke "./install.sh" "-d" themesdir) #t)))) (inputs (list gtk-engines)) (native-inputs (list bash coreutils)) (synopsis "Flat design theme for GTK 3, GTK 2 and GNOME-Shell") (description "Matcha is a flat Design theme for GTK 3, GTK 2 and Gnome-Shell which supports GTK 3 and GTK 2 based desktop environments like Gnome, Unity, Budgie, Pantheon, XFCE, Mate and others.") (home-page "https://github.com/vinceliuice/matcha") (license license:gpl3+))) (define-public materia-theme (package (name "materia-theme") (version "20210322") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/nana-4/materia-theme") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1fsicmcni70jkl4jb3fvh7yv0v9jhb8nwjzdq8vfwn256qyk0xvl")))) (build-system meson-build-system) (native-inputs (list gtk+ sassc)) (home-page "https://github.com/nana-4/materia-theme") (synopsis "Material Design theme for a wide range of environments") (description "Materia is a Material Design theme for GNOME/GTK based desktop environments. It supports GTK 2, GTK 3, GNOME Shell, Budgie, Cinnamon, MATE, Unity, Xfce, LightDM, GDM, Chrome theme, etc.") (license license:gpl2+))) (define-public numix-gtk-theme (package (name "numix-gtk-theme") (version "2.6.7") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/numixproject/numix-gtk-theme") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "12mw0kr0kkvg395qlbsvkvaqccr90cmxw5rrsl236zh43kj8grb7")))) (build-system gnu-build-system) (arguments '(#:make-flags (list (string-append "INSTALL_DIR=" (assoc-ref %outputs "out") "/share/themes/Numix")) #:tests? #f #:phases (modify-phases %standard-phases (delete 'configure)))) ; no configure script (native-inputs (list `(,glib "bin") ; for glib-compile-schemas gnome-shell gtk+ libxml2 ruby-sass)) (synopsis "Flat theme with light and dark elements") (description "Numix is a modern flat theme with a combination of light and dark elements. It supports GNOME, Unity, Xfce, and Openbox.") (home-page "https://numixproject.github.io") (license license:gpl3+))) (define-public orchis-theme (package (name "orchis-theme") (version "2021-02-28") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/vinceliuice/Orchis-theme") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1qp3phiza93qllrjm5xjjca5b7l2sbng8c382khy9m97grxvcq0y")) (modules '((guix build utils) (ice-9 regex) (srfi srfi-26))) (snippet '(begin (for-each (lambda (f) (let* ((r (make-regexp "\\.scss")) (f* (regexp-substitute #f (regexp-exec r f) 'pre ".css"))) (if (file-exists? f*) (delete-file f*)))) (find-files "." ".*\\.scss")) #t)))) (build-system gnu-build-system) (arguments `(#:configure-flags (list "--dest" (string-append (assoc-ref %outputs "out") "/share/themes") "--theme" "all" "--radio-color") #:tests? #f ; no tests #:phases (modify-phases %standard-phases (delete 'bootstrap) (delete 'configure) (replace 'build (lambda _ (invoke "./parse-sass.sh"))) (replace 'install (lambda* (#:key configure-flags #:allow-other-keys) (mkdir-p (cadr (or (member "--dest" configure-flags) (member "-d" configure-flags)))) (apply invoke "./install.sh" configure-flags) #t))))) (inputs (list gtk-engines)) (native-inputs (list ;("coreutils" ,coreutils) gtk+ sassc)) (home-page "https://github.com/vinceliuice/Orchis-theme") (synopsis "Material Design theme for a wide range of environments") (description "Orchis is a Material Design them for GNOME/GTK based desktop environments. It is based on materia-theme and adds more color variants.") (license (list license:gpl3 ; According to COPYING. license:lgpl2.1 ; Some style sheets. license:cc-by-sa4.0)))) ; Some icons (define-public postmarketos-theme (package (name "postmarketos-theme") (version "0.6.0") (source (origin (method git-fetch) (uri (git-reference (url "https://gitlab.com/postmarketOS/postmarketos-theme") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "09in7737cirmw2c0ac40ac29szfgdva6q0zl32mdi12marybd2g5")))) (build-system meson-build-system) (native-inputs (list sassc)) (home-page "https://gitlab.com/postmarketOS/postmarketos-theme") (synopsis "PostmarketOS themed themes") (description "@code{postmarketos-theme} contains a GTK3 and GTK4 theme which is based on Adwaita but replaces the standard blue highlights in the theme with postmarketOS green. There's also the oled and paper variants of the theme that are completely black and completely white.") (license license:lgpl2.0+))) (define-public eiciel (package (name "eiciel") (version "0.10.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/rofirrim/eiciel") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0lhnrxhbg80pqjy9f8yiqi7x48rb6m2cmkffv25ssjynsmdnar0s")))) (build-system meson-build-system) (arguments (list #:glib-or-gtk? #t #:tests? #f ; no tests #:configure-flags #~(list (string-append "-Dnautilus-extension-dir=" #$output "/lib/nautilus/site-extensions")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'skip-gtk-update-icon-cache (lambda _ (substitute* "meson.build" (("gtk_update_icon_cache : true") "gtk_update_icon_cache : false"))))))) (native-inputs (list gettext-minimal `(,glib "bin") itstool pkg-config)) (inputs (list acl attr glibmm gtkmm nautilus)) (home-page "https://rofi.roger-ferrer.org/eiciel") (synopsis "Manage extended file attributes") (description "Eiciel is a plugin for nautilus to graphically edit ACL and extended file attributes. It also functions as a standalone command.") (license license:gpl2+))) (define-public markets (package (name "markets") (version "0.5.4") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/bitstower/markets") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0ch6dfmdcpw32r23s58riv8agnyw0f1cqd1y6j7zkx5sb3zyn3zy")))) (build-system meson-build-system) (arguments `(#:glib-or-gtk? #t #:phases (modify-phases %standard-phases (add-after 'unpack 'skip-gtk-update-icon-cache ;; Don't create 'icon-theme.cache'. (lambda _ (substitute* "build-aux/meson/postinstall.py" (("gtk-update-icon-cache") "true")))) (add-after 'unpack 'skip-update-desktop-database ;; Don't update desktop file database. (lambda _ (substitute* "build-aux/meson/postinstall.py" (("update-desktop-database") "true"))))))) (inputs (list gtk+ gettext-minimal gsettings-desktop-schemas libgee libhandy libsoup-minimal-2 json-glib vala)) (native-inputs (list pkg-config python-wrapper `(,glib "bin"))) ; for 'glib-compile-resources' (home-page "https://github.com/bitstower/markets") (synopsis "Stock, currency and cryptocurrency tracker") (description "Markets is a GTK application that displays financial data, helping users track stocks, currencies and cryptocurrencies.") (license license:gpl3+))) (define-public vala-language-server (package (name "vala-language-server") ;; Note to maintainer: VLS must be built with a Vala toolchain the same ;; version or newer. Therefore when you update this package you may need ;; to update Vala too. (version "0.48.7") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/benwaffle/vala-language-server") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1ini6nd5yim6mql13b9mb15gs02gm08x7zphd0vlv9jxl2646pjn")))) (build-system meson-build-system) (arguments '(#:glib-or-gtk? #t)) (inputs (list glib json-glib jsonrpc-glib libgee vala)) (native-inputs (list pkg-config)) (home-page "https://github.com/benwaffle/vala-language-server") (synopsis "Language server for Vala") (description "The Vala language server is an implementation of the Vala language specification for the Language Server Protocol (LSP). This tool is used in text editing environments to provide a complete and integrated feature-set for programming Vala effectively.") (license license:lgpl2.1+))) (define-public yaru-theme (package (name "yaru-theme") (version "22.10.3") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/ubuntu/yaru") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0f052a5cyf4lijyrdp4kjvxrx6d5fbj7109pi2bhxs9lk5jy8z86")))) (build-system meson-build-system) (native-inputs (list python sassc pkg-config `(,glib "bin") `(,gtk+ "bin"))) (arguments (list #:configure-flags #~'("-Dmate=true" "-Dmate-dark=true" "-Dxfwm4=true" "-Dmetacity=true" "-Dsessions=false"))) (home-page "https://github.com/ubuntu/yaru") (synopsis "Ubuntu community theme yaru") (description "Yaru is the default theme for Ubuntu. It contains: @itemize @item a GNOME Shell theme based on the upstream GNOME shell theme @item a light and dark GTK theme (gtk2 and gtk3) based on the upstream Adwaita Gtk theme @item an icon & cursor theme, derived from the Unity8 Suru icons and Suru icon theme @item a sound theme, combining sounds from the WoodenBeaver and Touch-Remix sound themes. @end itemize") (license (list license:lgpl2.1 license:lgpl3 license:cc-by-sa4.0)))) (define-public nordic-theme (let ((commit "07d764c5ebd5706e73d2e573f1a983e37b318915") (revision "0")) (package (name "nordic-theme") (version (git-version "1.9.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/EliverLara/Nordic") (commit commit))) (sha256 (base32 "0y2s9d6h1b195s6afp1gb5rb1plfslkpbw2brd30a9d66wfvsqk0")) (file-name (git-file-name name version)))) (build-system copy-build-system) (arguments `(#:install-plan `(("." "share/themes/nord" #:exclude ("README.md" "LICENSE" "Art/" "package.json" "package-lock.json" "Gulpfile.js"))))) (home-page "https://github.com/EliverLara/Nordic") (synopsis "Dark Gtk3.20+ theme using the Nord color palette") (description "Nordic is a Gtk3.20+ theme created using the Nord color palette.") (license license:gpl3)))) (define-public tiramisu (package (name "tiramisu") (version "2.0.20211107") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/Sweets/tiramisu") (commit version))) (sha256 (base32 "1n1x1ybbwbanibw7b90k7v4cadagl41li17hz2l8s2sapacvq3mw")) (file-name (git-file-name name version)))) (build-system gnu-build-system) (arguments `(#:phases (modify-phases %standard-phases (delete 'configure) (delete 'check) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (install-file "tiramisu" (string-append out "/bin")) #t)))) #:make-flags (list (string-append "CC=" ,(cc-for-target))))) (inputs (list glib)) (native-inputs (list pkg-config vala)) (home-page "https://github.com/Sweets/tiramisu") (synopsis "Desktop notifications, the UNIX way") (description "tiramisu is a notification daemon based on dunst that outputs notifications to STDOUT in order to allow the user to process notifications any way they prefer.") (license license:expat)))