mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 11:13:04 +03:00
14 lines
464 B
Bash
Executable file
14 lines
464 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# [[file:../../Guix.org::*Run =guix package= in profile][Run =guix package= in profile:1]]
|
|
GUIX_EXTRA_PROFILES=$HOME/.guix-extra-profiles
|
|
|
|
profileName=$(basename $1)
|
|
profileName="${profileName%.*}"
|
|
profilePath="$GUIX_EXTRA_PROFILES/$profileName"
|
|
|
|
if [ -d $profilePath ]; then
|
|
guix package --profile="$profilePath/$profileName" ${@:2}
|
|
else
|
|
echo -e "No profile found at path: " $profilePath
|
|
fi
|
|
# Run =guix package= in profile:1 ends here
|