Compare commits

..

2 Commits

7 changed files with 5 additions and 23 deletions

View File

@ -1,3 +1 @@
(channel (channel (version 0))
(version 0)
(directory "packages"))

View File

@ -1,5 +0,0 @@
FROM alpine:latest
RUN apk add guix
RUN mkdir -p ${HOME}/.config/guix
RUN echo "(cons (channel (name 'snow-fort) (url \"https://gitea.scheme.org/Rinne/snow-fort-guix-channel.git\")) %default-channels)" > ${HOME}/.config/guix/channels.scm
RUN guix-daemon & guix pull

View File

@ -1,5 +0,0 @@
FROM debian:stable-slim
RUN apt update && apt install -y guix
RUN mkdir -p ${HOME}/.config/guix
RUN echo "(cons (channel (name 'snow-fort) (url \"https://gitea.scheme.org/Rinne/snow-fort-guix-channel.git\")) %default-channels)" > ${HOME}/.config/guix/channels.scm
RUN guix-daemon & guix pull

View File

@ -3,19 +3,13 @@ TMPDIR=/tmp/snow-fort-guix-channel
build: repo.scm build: repo.scm
mkdir -p ${TMPDIR}/hashes mkdir -p ${TMPDIR}/hashes
./get-package-urls > ${TMPDIR}/package-urls.txt ./get-package-urls > ${TMPDIR}/package-urls.txt
sh ensure-hashes.sh ${TMPDIR}/hashes ${TMPDIR}/package-urls.txt ./ensure-hashes ${TMPDIR}/hashes ${TMPDIR}/package-urls.txt
mkdir -p packages mkdir -p packages
./build-repo ${TMPDIR} ./build-repo ${TMPDIR}
repo.scm: repo.scm:
wget https://snow-fort.org/s/repo.scm wget https://snow-fort.org/s/repo.scm
test-debian:
docker build . -f Dockerfile.debian
test-alpine:
docker build . -f Dockerfile.alpine
clean: clean:
rm -rf packages rm -rf packages

View File

@ -15,7 +15,7 @@
(if (not (file-exists? "repo.scm")) (error "No repo.scm found")) (if (not (file-exists? "repo.scm")) (error "No repo.scm found"))
(define repository (with-input-from-file "repo.scm" (lambda () (read)))) (define repository (with-input-from-file "repo.scm" (lambda () (read))))
(define base-url "https://snow-fort.org") (define base-url "https://snow-fort.org")
(define module-file-path "packages/snow-fort.scm") (define module-file-path "snow-fort.scm")
(when (file-exists? module-file-path) (delete-file module-file-path)) (when (file-exists? module-file-path) (delete-file module-file-path))
(define module-file (open-output-file module-file-path)) (define module-file (open-output-file module-file-path))

2
ensure-hashes.sh → ensure-hashes Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
TMPDIR=${1} TMPDIR=${1}

View File

@ -1,4 +1,4 @@
(define-module (packages snow-fort) #:use-module (guix licenses) #:use-module ((guix packages) #:select (package origin base32)) #:use-module (guix build-system copy) #:use-module ((guix download) #:select (url-fetch))) (define-module (snow-fort) #:use-module (guix licenses) #:use-module ((guix packages) #:select (package origin base32)) #:use-module (guix build-system copy) #:use-module ((guix download) #:select (url-fetch)))
(define-public snow-chibi-math-linalg (package (name "snow-chibi-math-linalg") (version "0.3") (source (origin (method url-fetch) (uri "https://snow-fort.org/s/gmail.com/alexshinn/chibi/math/linalg/0.3/chibi-math-linalg-0.3.tgz") (sha256 (base32 "1c4li62xpcl7jd9kanc4nd2d2jnwh0ji1wxdlzrnb136s2c3hy2m")))) (build-system copy-build-system) (arguments (list #:install-plan ''(("chibi/" "share/snow/chibi/")))) (synopsis "") (description "") (home-page "") (license (non-copyleft "")) (propagated-inputs (list snow-chibi-assert snow-chibi-optional)))) (define-public snow-chibi-math-linalg (package (name "snow-chibi-math-linalg") (version "0.3") (source (origin (method url-fetch) (uri "https://snow-fort.org/s/gmail.com/alexshinn/chibi/math/linalg/0.3/chibi-math-linalg-0.3.tgz") (sha256 (base32 "1c4li62xpcl7jd9kanc4nd2d2jnwh0ji1wxdlzrnb136s2c3hy2m")))) (build-system copy-build-system) (arguments (list #:install-plan ''(("chibi/" "share/snow/chibi/")))) (synopsis "") (description "") (home-page "") (license (non-copyleft "")) (propagated-inputs (list snow-chibi-assert snow-chibi-optional))))