-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathguix.scm
41 lines (37 loc) · 1.39 KB
/
guix.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
(use-modules (guix packages)
(guix build-system guile)
(guix build utils)
(guix gexp)
(guix git)
(guix git-download)
((guix licenses) #:prefix license:)
(gnu packages guile)
(gnu packages guile-xyz)
(gnu packages tls)
(ice-9 popen)
(ice-9 textual-ports)
(srfi srfi-1))
(define %source-dir
(dirname (current-filename)))
(define %git-commit
(with-directory-excursion %source-dir
(get-line (open-input-pipe "git rev-parse HEAD"))))
(define guile-gemini
(package
(name "guile-gemini")
(version (git-version "0.1" "HEAD" %git-commit))
(source (local-file %source-dir
#:recursive? #t
#:select? (git-predicate %source-dir)))
(build-system guile-build-system)
(arguments '(#:source-directory "src"))
(inputs (list guile-3.0-latest))
(propagated-inputs (list guile-fibers-1.1 guile-gnutls))
(home-page "https://notabug.org/flatwhatson/guile-gemini")
(synopsis "Guile implementation of the Gemini protocol")
(description
"Guile Gemini is an implementation of the Gemini protocol in Guile Scheme,
providing both client and server functionality. It uses GnuTLS to meet
Gemini's TLS requirements, and Guile Fibers for concurrency.")
(license license:lgpl3+)))
guile-gemini