GNU/Linux xterm-256color bash 61 views

cf: blokyk/nix-debug

Description:

A user launches the command nix-debug ., and is greeted by a header listing the available build phases as well as a list of utility functions (run-next-phase, run-until). The user is then presented with a shell prompt listing the name of the package being debugged (nix-otel), the current working directory (.), and then the next phase to be executed (unpack).

The user runs the commands run-until conf, which executes the unpack, patch, and updateAutotools phases and stops before running the configure phase. The shell prompt has updated the working directory (now source) and phase (now configure). Running the run-next-phase command runs the configure phase, and sets the next phase to build. Finally, executing r build launches the actual build.

Once that is done, the user explores the resulting files before exiting the shell. Before closing, the user is asked if they want to delete the source directory that was created by the unpack phase, to which they answer yes and terminate the session.