-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguix.scm
46 lines (45 loc) · 1.61 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
42
43
44
45
46
(use-modules
(gnu packages autotools)
(gnu packages guile)
(gnu packages pkg-config)
(guix build-system gnu)
(guix gexp)
(guix git-download)
(guix licenses)
(guix packages))
(package
(name "guile-greetd")
(version "git")
(source
(let ((dir (dirname (current-filename))))
(local-file dir #:recursive? #t #:select? (git-predicate dir))))
(build-system gnu-build-system)
(arguments
(list
#:make-flags #~'("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
#:modules `(((guix build guile-build-system)
#:select (target-guile-effective-version))
,@%gnu-build-system-modules)
#:imported-modules `((guix build guile-build-system)
,@%gnu-build-system-modules)
#:phases
#~(modify-phases %standard-phases
(delete 'strip)
(add-after 'install 'wrap-program
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin"))
(version (target-guile-effective-version))
(scm (string-append "/share/guile/site/" version))
(go (string-append "/lib/guile/" version "/site-ccache")))
(wrap-program (string-append bin "/agreety")
`("GUILE_LOAD_PATH" prefix (,(string-append out scm)))
`("GUILE_LOAD_COMPILED_PATH" prefix (,(string-append out go))))))))))
(native-inputs
(list autoconf automake pkg-config))
(inputs
(list guile-3.0 guile-json-4))
(home-page #f)
(synopsis #f)
(description #f)
(license gpl3))