local/bin/package-lister: List packages in ~/.guix-extra-profiles/.

master
Pierre Neidhardt 2019-09-25 12:20:30 +02:00
parent 3cd0b9fcea
commit dc93f6154e
1 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,13 @@ fi
## Guix
if command -v guix >/dev/null 2>&1; then
guile --no-auto-compile -s ~/.config/guix/profile-to-manifest.scm ~/.guix-profile >"$PKG_ROOT/guix-manifest.scm"
for i in ~/.guix-extra-profiles/*; do
profile=$i/$(basename "$i")
if [ -d "$profile" ]; then
guile --no-auto-compile -s ~/.config/guix/profile-to-manifest.scm "$profile" >"$PKG_ROOT/guix-$(basename "$i")-manifest.scm"
fi
unset profile
done
fi
YELLOW='\033[0;33m\033[1m'