diff --git a/contrib/guix/guix-build b/contrib/guix/guix-build index 28e5dfb..9aea815 100755 --- a/contrib/guix/guix-build +++ b/contrib/guix/guix-build @@ -346,7 +346,15 @@ INFO: Building ${VERSION:?not set} for platform triple ${HOST:?not set}: ...bind-mounted in container to: '$(OUTDIR_BASE=/outdir-base && outdir_for_host "$HOST")' EOF - rm -f "$(profiledir_for_host "${HOST}")" + rm -f "$(profiledir_for_host "${HOST}")" + + # First run produces a different GUIX_ENVIRONMENT. + time-machine environment --manifest="${PWD}/contrib/guix/manifest.scm" \ + --container \ + --pure \ + --no-cwd \ + -- env HOST="$HOST" + # Run the build script 'contrib/guix/libexec/build.sh' in the build # container specified by 'contrib/guix/manifest.scm'.