snow-fort-guix-channel/get-package-urls

18 lines
476 B
Plaintext
Raw Normal View History

#!/usr/bin/env -S gosh -r7
2024-10-06 09:33:19 -04:00
(import (scheme base)
(scheme read)
(scheme write)
(scheme file))
(if (not (file-exists? "repo.scm")) (error "No repo.scm found"))
(define repository (with-input-from-file "repo.scm" (lambda () (read))))
(define base-url "https://snow-fort.org")
(for-each
(lambda (item)
(when (equal? (car item) 'package)
(display (string-append base-url (cadr (assoc 'url (cdr item)))))
(newline)))
(cdr repository))