Hello Nicolas! I've been looking forward to this early 2024 effort to allow partial builds.
Today I've decided to try it out. I got some issues when running the 'guix.scm' example you provided with your patch series applied over `412f411d4f8780e6b60b448caae17f01c09be0eb`. --8<---------------cut here---------------start------------->8--- ../guix/pre-inst-env guix build -f guix.scm [...] not running as PID 1 (PID: 11958) phase `separate-from-pid1' succeeded after 0.0 seconds sh: line 1: /environment-variables: Permission denied starting phase `set-SOURCE-DATE-EPOCH' phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds sh: line 1: /environment-variables: Permission denied starting phase `set-paths' [...] starting phase `patch-source' applying '/gnu/store/s3ngalq85wrlhc8wy4d74p6bn768645n-emacs-disable-jit-compilation.patch'... patching file src/comp.c Hunk #1 FAILED at 5648. 1 out of 1 hunk FAILED -- saving rejects to file src/comp.c.rej error: in phase 'patch-source': uncaught exception: %exception #<&invoke-error program: "/gnu/store/h6mhlky6wnrn68q4ksmmy39rjkzwl22l-patch-2.7.6-0.f144b35/bin/patch" arguments: ("--force" "--no-backup-if-mismatch" "-p1" "--input" "/gnu/store/s3ngalq85wrlhc8wy4d74p6bn768645n-emacs-disable-jit-compilation.patch") exit-status: 1 term-signal: #f stop-signal: #f> phase `patch-source' failed after 0.0 seconds sh: line 1: /environment-variables: Permission denied command "/gnu/store/h6mhlky6wnrn68q4ksmmy39rjkzwl22l-patch-2.7.6-0.f144b35/bin/patch" "--force" "--no-backup-if-mismatch" "-p1" "--input" "/gnu/store/s3ngalq85wrlhc8wy4d74p6bn768645n-emacs-disable-jit-compilation.patch" failed with status 1 guix build: error: exception thrown: #<&invoke-error program: "/gnu/store/xv4cd7qz4yan93zkjisbmbpxfz78hah2-guile-3.0.9/bin/guile" arguments: ("--no-auto-compile" "-L" "/gnu/store/q7lrzwpnhjp4s1jrgg78vikqk8gx5mgq-module-import" "-C" "/gnu/store/qafn8iflzfq18j8wn9pz0z4ycrsply0v-module-import-compiled" "/gnu/store/rrxc0kv0k1mblr660smligw4scrab7yl-emacs-pgtk-29.4-builder") exit-status: 1 term-signal: #f stop-signal: #f> --8<---------------cut here---------------end--------------->8--- I've seen that the latest patch series revision is from last month. Is the provided 'guix.scm' example outdated? Is there any way we can help you to bring this feature to Guix proper? Best regards, Sergio.