-
Notifications
You must be signed in to change notification settings - Fork 0
/
guix.scm
40 lines (37 loc) · 1.25 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
(use-modules (guix git)
(guix git-download)
(guix gexp)
(guix packages)
(guix licenses)
(guix build utils)
(guix build-system guile)
(gnu packages)
(gnu packages sdl)
(gnu packages guile)
(gnu packages guile-xyz)
(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"))))
(package
(name "xile")
(version (git-version "0.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"))
(native-inputs (list guile-3.0))
(inputs (list guile-sdl2
guile-ncurses guile-ncurses/gpm
guile-readline
guile-json-3))
(synopsis "Guile front-end to xi-editor")
(description "xile is a toy front-end for now-abandoned xi-editor written
in Guile Scheme.")
(home-page "https://github.com/gagbo/xile")
(license expat))