File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # #DO NOT RUN DIRECTLY
4+ # #Self: bash <(curl -qfsSL "https://raw.githubusercontent.com/pkgforge/devscripts/refs/heads/main/Github/Runners/bootstrap/debian_guix.sh")
5+ # -------------------------------------------------------#
6+
7+ # -------------------------------------------------------#
8+ # #Install Guix: https://guix.gnu.org/manual/en/html_node/Installation.html
9+ curl -qfsSL " https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh" -o " ./guix-install.sh"
10+ if [[ ! -s " ./guix-install.sh" || $( stat -c%s " ./guix-install.sh" ) -le 10 ]]; then
11+ curl -qfsSL " https://raw.githubusercontent.com/Millak/guix/refs/heads/master/etc/guix-install.sh" -o " ./guix-install.sh"
12+ fi
13+ chmod +x " ./guix-install.sh" && yes ' ' | sudo " ./guix-install.sh" --uninstall 2> /dev/null
14+ yes ' ' | sudo " ./guix-install.sh"
15+ # Test
16+ if ! command -v guix & > /dev/null; then
17+ echo -e " \n[-] guix NOT Found\n"
18+ export CONTINUE=" NO"
19+ return 1 || exit 1
20+ else
21+ yes ' ' | guix install glibc-locales
22+ export GUIX_LOCPATH=" ${HOME} /.guix-profile/lib/locale"
23+ curl -qfsSL " https://raw.githubusercontent.com/pkgforge/devscripts/refs/heads/main/Linux/nonguix.channels.scm" | sudo tee " /root/.config/guix/channels.scm"
24+ GUIX_GIT_REPO=" https://git.savannah.gnu.org/git/guix.git"
25+ # #mirror
26+ # GUIX_GIT_REPO="https://github.com/Millak/guix"
27+ GUIX_LATEST_SHA=" $( git ls-remote " ${GUIX_GIT_REPO} " ' HEAD' | grep -w ' HEAD' | head -n 1 | awk ' {print $1}' | tr -d ' [:space:]' ) "
28+ GIT_CONFIG_PARAMETERS=" 'filter.blob:none.enabled=true'" guix pull --url=" ${GUIX_GIT_REPO} " --commit=" ${GUIX_LATEST_SHA} " --cores=" $(( $(nproc)+ 1 )) " --max-jobs=" 2" --disable-authentication &
29+ sudo GIT_CONFIG_PARAMETERS=" 'filter.blob:none.enabled=true'" guix pull --url=" ${GUIX_GIT_REPO} " --commit=" ${GUIX_LATEST_SHA} " --cores=" $(( $(nproc)+ 1 )) " --max-jobs=" 2" --disable-authentication &
30+ wait ; guix --version
31+ rm -rvf " ./guix-install.sh" 2> /dev/null
32+ fi
33+ # -------------------------------------------------------#
You can’t perform that action at this time.
0 commit comments