Move the package file to root of the repo

This commit is contained in:
retropikzel 2024-10-11 08:56:21 +03:00
parent 3c9e333d72
commit d69ea2af02
3 changed files with 3 additions and 5 deletions

View File

@ -1,3 +1 @@
(channel (channel (version 0))
(version 0)
(directory "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))

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))))