37 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Docker
		
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Docker
		
	
	
	
| FROM debian:trixie
 | |
| RUN apt-get update && apt-get install -y \
 | |
|     build-essential \
 | |
|     make \
 | |
|     git \
 | |
|     ca-certificates \
 | |
|     chicken-bin \
 | |
|     pandoc \
 | |
|     libffi-dev \
 | |
|     tree \
 | |
|     file
 | |
| RUN chicken-install r7rs
 | |
| RUN git clone https://github.com/ashinn/chibi-scheme.git --depth=1
 | |
| WORKDIR /chibi-scheme
 | |
| RUN make
 | |
| RUN make install
 | |
| WORKDIR /build
 | |
| RUN mkdir -p /usr/local/bin
 | |
| RUN ls
 | |
| COPY --from=retropikzel1/compile-r7rs /opt/compile-r7rs /opt/compile-r7rs
 | |
| ENV PATH=/opt/compile-r7rs/bin:${PATH}
 | |
| ARG SCHEME=chibi
 | |
| ENV COMPILE_R7RS=${SCHEME}
 | |
| RUN mkdir -p ${HOME}/.snow && echo "()" > ${HOME}/.snow/config.scm
 | |
| RUN snow-chibi --impls=${SCHEME} --always-yes install "(foreign c)"
 | |
| RUN git clone https://git.sr.ht/~retropikzel/foreign-c-system --depth=1
 | |
| RUN cd foreign-c-system && make SCHEME=${SCHEME} && make SCHEME=${SCHEME} force-install
 | |
| #RUN snow-chibi --impls=${SCHEME} --always-yes install "(retropikzel system)"
 | |
| RUN snow-chibi --impls=${SCHEME} --always-yes install "(srfi 170)"
 | |
| RUN git clone https://git.sr.ht/~retropikzel/foreign-c-srfi-170 --depth=2
 | |
| RUN cd foreign-c-srfi-170 && make SCHEME=${SCHEME} && make SCHEME=${SCHEME} force-install
 | |
| COPY Makefile .
 | |
| COPY git-to-snow-repo.scm .
 | |
| RUN make SCHEME=${SCHEME}
 | |
| RUN make PREFIX=/opt/git-to-snow-repo install
 | |
| ENV PATH=/opt/git-to-snow-repo/bin:${PATH}
 |