mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: gnome-shell-extension-gsconnect: Fix search path patching.
* gnu/packages/gnome-xyz.scm (gnome-shell-extension-gsconnect): [arguments]<#:phases>: Fix 'fix-paths phase substitutions no longer applying. Change-Id: I99aa0204c1dfad836aed62261d2ffc0c75366510 Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
ba0cc26710
commit
d19f496c67
1 changed files with 12 additions and 9 deletions
|
@ -20,6 +20,7 @@
|
|||
;;; Copyright © 2022 Sughosha <sughosha@proton.me>
|
||||
;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
||||
;;; Copyright © 2023 Eidvilas Markevičius <markeviciuseidvilas@gmail.com>
|
||||
;;; Copyright © 2025 aurtzy <aurtzy@gmail.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -766,14 +767,16 @@ faster window switching.")
|
|||
(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"
|
||||
(for-each (lambda (file)
|
||||
(with-atomic-file-replacement
|
||||
file
|
||||
(lambda (input output)
|
||||
(format output "~a"
|
||||
(string-append
|
||||
"'" gi-typelib-path "'.split(':').forEach("
|
||||
"path => imports.gi.GIRepository.Repository."
|
||||
"prepend_search_path(path));"))))
|
||||
"prepend_search_path(path));\n"))
|
||||
(dump-port input output))))
|
||||
'("src/extension.js" "src/prefs.js")))))
|
||||
(add-after 'install 'wrap-daemons
|
||||
(lambda _
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue