Skip to content

Instantly share code, notes, and snippets.

@stigmergik
Last active July 8, 2018 05:14
Show Gist options
  • Save stigmergik/0942dcb0e138584d94803f5f6f41dcaa to your computer and use it in GitHub Desktop.
Save stigmergik/0942dcb0e138584d94803f5f6f41dcaa to your computer and use it in GitHub Desktop.
How to search for packages that I can install with the GNU Guix package manager
# Add this to your ~/.bashrc or ~/.bash_aliases
# Then search with:
# xs <pattern>
# like
# xs ruby
#
# Requires ruby installed
# And the guix source code cloned locally somewhere from
# https://git.savannah.gnu.org/git/guix.git
export MY_GUIX_SOURCE_PATH=$HOME/code/guix # change to the directory you cloned the guix source to
alias xs=$'grep -R define-public $MY_GUIX_SOURCE_PATH/gnu/packages/ | ruby -ne \'puts $_.split(" ").last\' | grep --color -i'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment