~ruther/guix-exprs

ref: 481eec5d1929f5d7b80853f7a8707c0e8836eb86 guix-exprs/ruther/packages/wayland.scm -rw-r--r-- 9.1 KiB
481eec5d — Rutherther fix: git repos for ruther packages 5 months ago
                                                                                
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
(define-module (ruther packages wayland)
  #:use-module (guix utils)
  #:use-module (guix packages)
  #:use-module (guix gexp)

  #:use-module (gnu packages build-tools)
  #:use-module (gnu packages)
  #:use-module (gnu packages xdisorg)
  #:use-module (gnu packages gl)
  #:use-module (gnu packages wm)
  #:use-module (gnu packages freedesktop)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages ghostscript)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages glib)

  #:use-module ((guix build-system gnu) #:prefix gnu:)
  #:use-module ((guix build-system meson) #:prefix meson:)
  #:use-module ((guix build-system python) #:prefix python:)
  #:use-module ((guix licenses) #:prefix license:)

  #:use-module (guix download)
  #:use-module (guix git-download))

(define-public dmenu-wl
  (package
    (name "dmenu-wl")
    (version "2023.05.18")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://github.com/nyyManni/dmenu-wayland")
         (commit "a380201dff5bfac2dace553d7eaedb6cea6855f9")))
       (sha256
        (base32 "1d920lzgchqgp9j72hg61qnwr5cbf3knwrn1kwxlqq4id59nz8bn"))))
    (build-system meson:meson-build-system)
    (native-inputs
     (list pkg-config wayland))
    (inputs
     (list cairo pango glib libxkbcommon
           wayland wayland-protocols))
    (synopsis "Dmenu for wayland")
    (description "Dmenu for Wayland")
    (home-page "https://github.com/nyyManni/dmenu-wayland")
    (license #f)))

(define-public libdrm-2.4.122
  (package/inherit libdrm
    (name "libdrm-next")
    (version "2.4.122")
    (source
     (origin
       (method url-fetch)
       (uri (string-append
             "https://dri.freedesktop.org/libdrm/libdrm-"
             version
             ".tar.xz"))
       (sha256
        (base32 "0lgjj9ign3cl27hzmqnxr7xwv21mm486pifc029wmzvxfydhgxfr"))))))

(define-public mesa-libdrm-2.4.122
  ((package-input-rewriting `((,libdrm . ,libdrm-2.4.122))) mesa))

(define-public wayland-1.23
  (package
    (inherit wayland)
    (name "wayland")
    (version "1.23.0")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "https://gitlab.freedesktop.org/" name
                           "/" name  "/-/releases/" version "/downloads/"
                           name "-" version ".tar.xz"))
       (sha256
        (base32
         "1cjswi1d7hp6lhvcnrdrxry7qhjvdgrn5y3lb5mn4rry9mby3cq5"))))))

(define-public wayland-protocols-1.35
  (package/inherit wayland-protocols
    (name "wayland-protocols")
    (version "1.35")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "https://gitlab.freedesktop.org/wayland/"
                           name "/-/releases/" version "/downloads/"
                           name "-" version ".tar.xz"))
       (sha256
        (base32
         "1awm7p1457zwzjhjdhg560hvg30ys8lqlmhw6hcwhg8k51m738ip"))))
    (inputs (modify-inputs (package-inputs wayland-protocols)
                     (replace "wayland" wayland-1.23)))))

(define-public wlroots-0.18
  (package/inherit wlroots
    (name "wlroots")
    (version "0.18.0")
    (source
        (origin
          (method git-fetch)
          (uri (git-reference
                (url "https://gitlab.freedesktop.org/wlroots/wlroots")
                (commit version)))
          (file-name (git-file-name name version))
          (sha256
           (base32 "13avi2805wrfkghgc7ar273p61svmm85k3g3hg9bf2gaxsz6f91f"))
          (patches (search-patches "wlroots-hwdata-fallback.patch"))))
    (native-inputs (modify-inputs (package-native-inputs wlroots)
                     (replace "wayland" wayland-1.23)))
    (propagated-inputs (modify-inputs (package-propagated-inputs wlroots)
                         (replace "mesa" mesa-libdrm-2.4.122)
                         (replace "wayland" wayland-1.23)
                         (replace "wayland-protocols" wayland-protocols-1.35)
                         (append lcms)))))

(define meson-1.5
  (package/inherit meson
    (name "meson-next")
    (version "1.5.1")
    (source (origin
              (method url-fetch)
              (uri (string-append "https://github.com/mesonbuild/meson/"
                                  "releases/download/" version  "/meson-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "1vab706pw1q17vh9rbsmlirgiji3k6wljl735lxffp95vwx56zjn"))))
    (build-system python:python-build-system)))

(define-public wlroots-0.19-dev
  (package/inherit wlroots-0.18
    (name "wlroots-dev")
    (version "0.19.0-dev")
    (source
        (origin
          (method git-fetch)
          (uri (git-reference
                (url "https://gitlab.freedesktop.org/wlroots/wlroots")
                (commit "2c64f36e8886d1f26daeb2a4ee79f3f9dd3d4c85")))
          (file-name (git-file-name name version))
          (sha256
           (base32 "0671bgkl66gdw4bsbdi8ddcb5qzm98ykxillza0k2j9nvzfywlbs"))
          (patches (cons
                    (local-file "./patches/revert-reset-pressed-buttons-on-focus-change.patch")
                    (search-patches "wlroots-hwdata-fallback.patch")))))
    (arguments
     (substitute-keyword-arguments (package-arguments wlroots-0.18)
       ((#:meson meson #f) meson-1.5)))))

(define-public (make-dwl-xwayland dwl)
  (package/inherit dwl
    (inputs
     (modify-inputs (package-inputs dwl)
       (append xcb-util-wm libx11 xorg-server-xwayland)))
    (arguments (substitute-keyword-arguments (package-arguments dwl)
                 ((#:make-flags original-flags)
                  #~(append '("XWAYLAND = -DXWAYLAND"
                              "XLIBS = xcb xcb-icccm")
                            #$original-flags))))))

(define-public dwl-0.7
  (package/inherit dwl
    (name "dwl")
    (version "0.7")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://codeberg.org/dwl/dwl.git")
             (commit (string-append "v" version))))
       (sha256
        (base32 "0404awsx8v9fyk7p2bg3p937sc56ixf8ay465xgvjcnv78hh4apd"))))
    (native-inputs
     (modify-inputs (package-native-inputs dwl)
       (append wayland-1.23)))
    (inputs (list wlroots-0.18))))

(define-public dwl-0.6
  (package/inherit dwl
    (version "0.6")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://codeberg.org/dwl/dwl.git")
             (commit (string-append "v" version))))
       (sha256
        (base32 "1j7lmp6k80g54hrsmwixh8ahpnbax4khgiybg8lhlvmq93618a3z"))))
    (inputs (list wlroots))))

(define-public dwl-0.8-dev
  (package/inherit dwl-0.7
    (name "dwl-dev")
    (version "0.8-dev")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://codeberg.org/dwl/dwl.git")
             (commit "334bbe6f0f5e4f77789b42ac9e5607d5076aef1b")))
       (sha256
        (base32 "1wsql3zs0mjndxzhbx84nkimls66l6zql79rb74lghlkwaajzaq9"))))
    (inputs (list wlroots-0.19-dev))))

(define-public dwlmsg
  (package
   (name "dwlmsg")
   (version "0.0.0")
   (source
    (origin
     (method git-fetch)
     (uri (git-reference
           (url "https://codeberg.org/notchoc/dwlmsg.git")
           (commit "7c9479b05b1ef4c351ddb646308321036bb1db33")))
     (sha256
      (base32 "1j1x51i698fs1iw7brd7mabpvh8y8i4a3g4vyd7hl024q75jwc9n"))))
   (build-system gnu:gnu-build-system)
   (inputs
    (list wayland wayland-protocols))
   (native-inputs
    (list pkg-config))
   (arguments
    (list
     #: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 (make-flags '()) #:allow-other-keys)
             (mkdir-p (string-append #$output "/bin"))
             (apply invoke "make" "install" make-flags))))))
   (synopsis "Send commands to dwl with ipc patch")
   (description "After patching with ipc, this tools allows
for messaging with dwl. There are control commands and build commands")
   (license #f)
   (home-page "https://codeberg.org/notchoc/dwlmsg")))

(define-public wlopm
  (package
    (name "wlopm")
    (version "0.1.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://git.sr.ht/~leon_plickat/wlopm")
             (commit (string-append "v" version))))
       (sha256
        (base32 "1qriynl80d5r7arhkiai121l0znadi00q2c8sncnlgv33ra0kici"))))
    (build-system gnu:gnu-build-system)
    (native-inputs
     (list wayland-protocols wayland))
    (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))))
    (synopsis "wlopm - Wayland output power management cli")
    (description "wlopm - Wayland output power management

Simple client implementing zwlr-output-power-management-v1.

wlopm is licensed under the GPLv3.")
    (license license:gpl3)
    (home-page "https://git.sr.ht/~leon_plickat/wlopm")))
Do not follow this link