Hi Yarl,
Hello!
It can be useful too look at store files under /gnu/store/
either to
understand what is going on, especially for newcomers, or for
debugging
purpose. Unfortunately, some files are not confortable to
read.
I propose a new command, pp-store, to pretty print such
files. It
handles .drv, -builder and guile minified scripts.
https://codeberg.org/guix/guix/pulls/6199
Please mentor/review.
Note that for Emacs we have guix-derivation-mode, which uses
guix-pretty-print-buffer, to make derivations readable. There are
other utilities for builder scripts etc. I'd prefer not to have a
pretty print command in Guix itself, because I don't think display
things should be part of the "guix" command itself.
If a separate command is desired one could run Emacs on the input
file in batch mode.
--
Ricardo