Compare commits
2 Commits
3c9e333d72
...
5787c97fcd
Author | SHA1 | Date |
---|---|---|
|
5787c97fcd | |
|
d69ea2af02 |
4
.channel
4
.channel
|
@ -1,3 +1 @@
|
||||||
(channel
|
(channel (version 0))
|
||||||
(version 0)
|
|
||||||
(directory "packages"))
|
|
||||||
|
|
|
@ -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
|
|
|
@ -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
|
|
8
Makefile
8
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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))
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
TMPDIR=${1}
|
TMPDIR=${1}
|
||||||
|
|
|
@ -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))))
|
||||||
|
|
Loading…
Reference in New Issue