ludo@gnu.org (Ludovic Courtès) skribis: > $ guix archive --export $(guix build -d coreutils) > t.nar > $ while guix archive --import 8--- (use-modules (guix) (gnu packages base) (rnrs io ports)) (with-store store (let* (;; (drv (package-derivation store coreutils)) ;; (dump (call-with-bytevector-output-port ;; (lambda (port) ;; (export-paths store (list (derivation-file-name drv)) ;; port)))) (dump (call-with-input-file "t.nar" get-bytevector-all))) (unless (pair? (pk 'import (import-paths store (open-bytevector-input-port dump)))) (format #t "attach GDB to ~a, call GC_default_print_heap_obj_proc,etc.~%" (getpid)) (sleep 1000) (exit 1)))) --8<---------------cut here---------------end--------------->8--- Also useful is to modify libguile like this: