Last active
July 8, 2018 05:14
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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