Bring things to new compile-r7rs

This commit is contained in:
retropikzel 2025-07-19 13:17:31 +03:00
parent 306533561d
commit 7d27c036ed
1 changed files with 15 additions and 19 deletions

View File

@ -1,11 +1,14 @@
ARG SCHEME=chibi ARG SCHEME=chibi
FROM debian:bookworm AS build FROM schemers/chibi:head AS build
RUN apt-get update && apt-get install -y git make chicken-bin build-essential RUN apt-get update && apt-get install -y \
RUN chicken-install r7rs ca-certificates \
RUN git clone https://github.com/Retropikzel/compile-r7rs.git --depth=1 git \
RUN cd compile-r7rs && make && make install make \
build-essential
RUN git clone https://github.com/ashinn/chibi-scheme.git --depth=1 RUN git clone https://github.com/ashinn/chibi-scheme.git --depth=1
RUN cd chibi-scheme && make && make PREFIX=/usr/local-other install RUN cd chibi-scheme && make -j 32
RUN git clone https://gitea.scheme.org/Retropikzel/compile-r7rs.git --depth=1
RUN cd compile-r7rs --branch=retropikzel-dependency-fixes && make
ARG SCHEME=chibi ARG SCHEME=chibi
FROM schemers/${SCHEME}:head FROM schemers/${SCHEME}:head
@ -13,20 +16,13 @@ RUN apt-get update && apt-get install -y \
build-essential \ build-essential \
git \ git \
make \ make \
libffi8 \ libffi-dev
libgc1 \ RUN mkdir ${HOME}/.snow && echo "()" > ${HOME}/.snow/config.scm
libssl3 \ COPY --from=build /chibi-scheme /chibi-scheme
libuv1 \ RUN cd /chibi-scheme && make -j 8 install
build-essential \ COPY --from=build /compile-r7rs /compile-r7rs
libffi-dev \ RUN cd /compile-r7rs && make install
libmbedtls-dev \
markdown \
pandoc \
weasyprint
COPY --from=build /usr/local-other /usr/local-other COPY --from=build /usr/local-other /usr/local-other
ENV PATH=/usr/local-other/bin:${PATH}
COPY --from=build /usr/local/bin/compile-r7rs /usr/local/bin/compile-r7rs
ARG SCHEME=chibi ARG SCHEME=chibi
ENV COMPILE_R7RS=${SCHEME} ENV COMPILE_R7RS=${SCHEME}
RUN mkdir -p ${HOME}/.snow && echo "()" > ${HOME}/.snow/config.scm
ENV GUILE_AUTO_COMPILE=0 ENV GUILE_AUTO_COMPILE=0