forked from djpohly/dtao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguix.scm
57 lines (54 loc) · 1.78 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
47
48
49
50
51
52
53
54
55
56
57
(use-modules (dwl-guile packages)
(guix gexp)
(guix utils)
(guix packages)
(guix git-download)
(guix build-system gnu)
(gnu packages wm)
(gnu packages guile)
(gnu packages groff)
(gnu packages xdisorg)
(gnu packages fontutils)
(gnu packages pkg-config)
((guix licenses) #:prefix license:))
(define this-directory
(dirname (current-filename)))
(define source
(local-file this-directory
#:recursive? #t
#:select? (git-predicate this-directory)))
(package
(name "dtao-devel")
(version "0.1")
(home-page "https://github.com/engstrand-config/dtao")
(source source)
(build-system gnu-build-system)
(native-inputs (list pkg-config))
(inputs (list guile-3.0
wlroots
fcft
pixman
groff
ronn-ng))
(arguments
`(#:tests? #f
#:make-flags
(list
(string-append "CC=" ,(cc-for-target))
(string-append "PREFIX=" (assoc-ref %outputs "out")))
#:phases
(modify-phases
%standard-phases
(delete 'configure)
(replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
(install-file "dtao" bin)
(rename-file (string-append bin "/dtao")
(string-append bin "/dtao-guile-devel"))
#t))))))
(license (list license:gpl3+ license:expat license:cc0))
(synopsis "dtao - dzen for Wayland")
(description
"dtao is a stdin-based general-purpose bar for Wayland,
modeled after the venerable dzen2"))