gnu: gnome-shell-extension-paperwm: Recompile schemas.

* gnu/packages/gnome-xyz.scm (gnome-shell-extension-paperwm)
[source]: Remove gschemas.compiled in a snippet.
[arguments]: Add compile-schemas phase.
[native-inputs]: Add glib.

Signed-off-by: Alex Griffin <a@ajgrf.com>
This commit is contained in:
Jack Hill 2020-02-21 08:20:58 -06:00 committed by Alex Griffin
parent a3f6c41067
commit 60d5ad8087
No known key found for this signature in database
GPG key ID: 6F5120A022FBB2D5

View file

@ -3,6 +3,7 @@
;;; Copyright © 2019 Alexandros Theodotou <alex@zrythm.org> ;;; Copyright © 2019 Alexandros Theodotou <alex@zrythm.org>
;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org> ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2020 Alex Griffin <a@ajgrf.com> ;;; Copyright © 2020 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -318,13 +319,23 @@ (define-public gnome-shell-extension-paperwm
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1qry75f696pgmd9yzqvwhq5h6cipin2fvk7h881g29cjcpxim37a")))) "1qry75f696pgmd9yzqvwhq5h6cipin2fvk7h881g29cjcpxim37a"))
(snippet
'(begin (delete-file "schemas/gschemas.compiled")))))
(build-system copy-build-system) (build-system copy-build-system)
(arguments (arguments
'(#:install-plan '(#:install-plan
'(("." "share/gnome-shell/extensions/paperwm@hedning:matrix.org" '(("." "share/gnome-shell/extensions/paperwm@hedning:matrix.org"
#:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$" #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$" "\\.xml$")))
"\\.xml$" "\\.compiled$"))))) #:phases
(modify-phases %standard-phases
(add-before 'install 'compile-schemas
(lambda _
(with-directory-excursion "schemas"
(invoke "make"))
#t)))))
(native-inputs
`(("glib:bin" ,glib "bin"))) ; for glib-compile-schemas
(home-page "https://github.com/paperwm/PaperWM") (home-page "https://github.com/paperwm/PaperWM")
(synopsis "Tiled scrollable window management for GNOME Shell") (synopsis "Tiled scrollable window management for GNOME Shell")
(description "PaperWM is an experimental GNOME Shell extension providing (description "PaperWM is an experimental GNOME Shell extension providing