If keychain is included as one of the base-packages in a Guix System
operating-system config, it will leave the user unable to use any
commands. ls, which, cat, etc. all get wiped out.
I'm not a Guile expert, but I think the way it's installed to /bin
might have a clue:
> (arguments
> `(#:tests? #f ; No test suite
> #:phases (modify-phases %standard-phases
> (delete 'configure)
> (replace 'install
> (lambda _
> (install-file "keychain"
> (string-append %output "/bin/"))
> (install-file "keychain.1"
> (string-append %output
"/share/man/man1"))
> #t)))))