~whereiseveryone/guixrus-scripts

A collection of guix scripts provided by Guix "R" Us
Add readme
Add guix rus-provides
Add guix shell --mutable

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~whereiseveryone/guixrus-scripts
read/write
git@git.sr.ht:~whereiseveryone/guixrus-scripts

You can also use your local clone with git send-email.

#Guix Command Line Extensions à la Guix 'R Us

Make sure to set the GUIX_EXTENSIONS_PATH and GUILE_LOAD_PATH to the root of the guixrus-scripts repository.

$ GUIX_EXTENSIONS_PATH=$(pwd)/guix/extensions \
  GUILE_LOAD_PATH=$(pwd):$GUILE_LOAD_PATH \
  guix rus-<command> <arguments>

Try using --help with any command to get more information.

#Modified Guix Shell

See --mutable option in --help.

$ guix rus-shell --mutable sbcl
...
building profile with 1 package...
[env]$ echo $GUIX_ENVIRONMENT
/home/charles/.cache/guix/profiles/xbpmkztcosi6nt5r4maes3faiqedvvftzutzyebcveeswciy5ooa
[env]$ guix install --profile=$GUIX_ENVIRONMENT sbcl-cl-str
The following package will be installed:
   sbcl-cl-str 0.19
...
building profile with 2 packages...
[env]$ echo $GUIX_ENVIRONMENT # same as before
/home/charles/.cache/guix/profiles/xbpmkztcosi6nt5r4maes3faiqedvvftzutzyebcveeswciy5ooa
[env]$ sbcl
* (require 'str)
nil
* (str:concat "yay" "!")
"yay!"

#Guix Provides

$ guix rus-provides --asdf-system com.inuoe.jzon
ecl-jzon
sbcl-jzon

Notice the lack of cl-jzon; see https://issues.guix.gnu.org/59592.

$ guix rus-provides --asdf-system alexandria/test
cl-alexandria
ecl-alexandria
sbcl-alexandria