From 4fd848bbe78912cc55ad8591b44f498e6a953c9c Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 16 Sep 2024 02:55:41 +0200 Subject: [PATCH] trisquel-automatic-netinstall-qemu: make guix shell work after guix pull. Signed-off-by: Denis 'GNUtoo' Carikli --- .../libre-en-communs-guix-shell.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/trisquel-automatic-netinstall-qemu/libre-en-communs-guix-shell.sh b/trisquel-automatic-netinstall-qemu/libre-en-communs-guix-shell.sh index 15d3fa7..1079a9d 100755 --- a/trisquel-automatic-netinstall-qemu/libre-en-communs-guix-shell.sh +++ b/trisquel-automatic-netinstall-qemu/libre-en-communs-guix-shell.sh @@ -12,6 +12,13 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. +# Libre en communs physical machines have Trisquel and just installed +# Guix through the package manager. So we end up with Guix 1.3.0 which +# doesn't have guix shell. Once Guix is upgraded with 'guix pull', we +# still don't have 'guix shell' without exporting the variables below. +GUIX_PROFILE="${HOME}/.config/guix/current" +. "$GUIX_PROFILE/etc/profile" + # The Libre en communs physical machines lack many packages, so when # this is the case we can simply use Guix to get these packages, but # at the same time resources are also very constrained (because the