isn't that going to break if the user invokes `guix cg -D` though?

On Ne, zář 18 2022 at 20:43:43 +0000, Jacob Hrbek <kreyren@rixotstudio.cz> wrote:
--- gnu/packages/gnome.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index d6d22f8eb1..89f5999920 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -12111,6 +12111,7 @@ (define-public polari (home-page "https://wiki.gnome.org/Apps/Polari") (license license:gpl2+))) +;; NOTE(Krey): src/util-app.vala might need patched paths (define-public gnome-boxes (package (name "gnome-boxes") @@ -12133,7 +12134,12 @@ (define-public gnome-boxes #:phases #~(modify-phases %standard-phases (add-after 'unpack 'disable-gtk-update-icon-cache (lambda _ - (setenv "DESTDIR" "/")))))) + (setenv "DESTDIR" "/"))) + (add-before 'configure 'substitute-qemu-dependencies + (lambda _ + (substitute* "src/installed-media.vala" + (("qemu-img") + (search-input-file %build-inputs "/bin/qemu-img")))))))) (native-inputs (list desktop-file-utils ;for update-desktop-database gettext-minimal @@ -12141,6 +12147,7 @@ (define-public gnome-boxes itstool pkg-config python + qemu-minimal ;for qemu-img vala)) (inputs (list glib-networking ;for TLS support -- 2.37.1