guix: fix first run reproducibility defect

This commit is contained in:
tobtoht 2023-03-22 01:20:16 +01:00
parent 1e32f7f099
commit b792ed0020
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -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'.