Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat ~/build_guix_from_sources.sh
- #!/bin/bash
- [ -z "$CLEANED" ] && exec /usr/bin/env -i CLEANED=1 /bin/bash --login --noprofile --norc "$0" "$@"
- set -o errexit
- build_profile=/home/yoann/.local/opt/guix-build-system
- prefix_install=/home/yoann/.local
- echo "==== DISPLAY ENV ====="
- env
- echo "==== ===="
- #####
- ## PREPARE ENV
- ######
- echo "==== Preparing env..... ===="
- guix package -p ${build_profile} --fallback --install \
- autoconf automake bash binutils bzip2 coreutils diffutils findutils gawk gcc \
- gcc-toolchain gettext git glibc-utf8-locales gnutls graphviz grep guile guile-git guile-json \
- guix help2man less libgcrypt m4 make nss-certs pkg-config sed sqlite strace \
- tar texinfo time vim which xz zlib
- export LC_ALL=en_US.UTF-8
- export GUIX_PROFILE=${build_profile}
- source ${GUIX_PROFILE}/etc/profile
- export PATH=${GUIX_PROFILE}/bin:$PATH
- eval `guix package -p ${GUIX_PROFILE} --search-paths`
- export GUIX_LOCPATH=${GUIX_PROFILE}/lib/locale:$GUIX_LOCPATH
- export ACLOCAL_PATH=/usr/share/aclocal:$ACLOCAL_PATH
- echo "==== ===="
- echo "==== DISPLAY ENV ====="
- env
- echo "==== ===="
- #####
- # PREPARE SOURCES
- #####
- echo "==== Preparing sources ====="
- [[ -d /tmp/guix ]] || git clone --recurse https://git.savannah.gnu.org/git/guix.git /tmp/guix
- cd /tmp/guix
- rm -rf autom4te.cache/
- make clean || true &> /dev/null
- make clean-go || true &> /dev/null
- ./bootstrap
- ./configure --prefix=${prefix_install} --with-store-dir=${prefix_install}/gnu/store
- echo "==== ===="
- ####
- # BUILDING
- ####
- echo "Building....."
- make -j 4
- make check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement