Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use upstream wayland to fix compatibility. #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 17 additions & 122 deletions dwl-guile/packages.scm
Original file line number Diff line number Diff line change
Expand Up @@ -19,133 +19,28 @@
#:use-module (dwl-guile patches)
#:export (
dwl-guile
libddrm-2.4.113
wayland-1.21.0
wayland-protocols-1.27
xorg-server-xwayland-22.1.5
wlroots-0.16.0

patch-dwl-guile-package))

(define libdrm-2.4.113
(package
(inherit libdrm)
(name "libdrm")
(version "2.4.113")
(source (origin
(method url-fetch)
(uri (string-append
"https://dri.freedesktop.org/libdrm/libdrm-"
version ".tar.xz"))
(sha256
(base32
"1qg54drng3mxm64dsxgg0l6li4yrfzi50bgj0r3fnfzncwlypmvz"))))))

(define wayland-1.21.0
(package
(inherit wayland)
(name "wayland")
(version "1.21.0")
(source (origin
(method url-fetch)
(uri (string-append "https://gitlab.freedesktop.org/wayland/wayland/-/releases/"
version "/downloads/" name "-" version ".tar.xz"))
(sha256
(base32
"1b0ixya9bfw5c9jx8mzlr7yqnlyvd3jv5z8wln9scdv8q5zlvikd"))))
(propagated-inputs
(list libffi))))

(define wayland-protocols-1.27
(package
(inherit wayland-protocols)
(name "wayland-protocols")
(version "1.27")
(source (origin
(method url-fetch)
(uri (string-append
"https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/"
version "/downloads/" name "-" version ".tar.xz"))
(sha256
(base32
"0p1pafbcc8b8p3175b03cnjpbd9zdgxsq0ssjq02lkjx885g2ilh"))))
(inputs
(modify-inputs (package-inputs wayland-protocols)
(replace "wayland" wayland-1.21.0)))))

(define xorg-server-xwayland-22.1.5
(package
(inherit xorg-server-xwayland)
(name "xorg-server-xwayland")
(version "22.1.5")
(source
(origin
(method url-fetch)
(uri (string-append "https://xorg.freedesktop.org/archive/individual"
"/xserver/xwayland-" version ".tar.xz"))
(sha256
(base32
"0whnmi2v1wvaw8y7d32sb2avsjhyj0h18xi195jj30wz24gsq5z3"))))
(inputs
(modify-inputs (package-inputs xorg-server-xwayland)
(prepend libbsd libxcvt)
(replace "wayland" wayland-1.21.0)
(replace "wayland-protocols" wayland-protocols-1.27)))))

(define wlroots-0.16.0
(package
(inherit wlroots)
(name "wlroots")
(version "0.16.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 "18rfr3wfm61dv9w8m4xjz4gzq2v3k5vx35ymbi1cggkgbk3lbc4k"))))
(inputs
(modify-inputs (package-inputs wlroots)
(prepend `(,hwdata "pnp"))))
(propagated-inputs
(modify-inputs (package-propagated-inputs wlroots)
(prepend libdrm-2.4.113)
(replace "wayland" wayland-1.21.0)
(replace "wayland-protocols" wayland-protocols-1.27)
(replace "xorg-server-xwayland" xorg-server-xwayland-22.1.5)))
(arguments
(substitute-keyword-arguments
(package-arguments wlroots)
((#:phases phases)
#~(modify-phases
#$phases
(add-after 'unpack 'patch-hwdata-path
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "backend/drm/meson.build"
(("/usr/share/hwdata/pnp.ids")
(search-input-file inputs "share/hwdata/pnp.ids")))))))))))

(define dwl-guile
(package
(inherit dwl)
(name "dwl-guile")
(version "2.0.2")
(inputs
(modify-inputs (package-inputs dwl)
(prepend guile-3.0)
(replace "wlroots" wlroots-0.16.0)))
(source
(origin
(inherit (package-source dwl))
(uri (git-reference
(url "https://github.com/engstrand-config/dwl-guile")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0z8ls92cgkry0fvybqzvg8jplwh3zjakdmq79kfxbczabvyijxk8"))))))
(inherit dwl)
(name "dwl-guile")
(version "2.0.2")
(inputs
(modify-inputs (package-inputs dwl)
(prepend guile-3.0)
(replace "wlroots" wlroots-0.16)))
(source
(origin
(inherit (package-source dwl))
(uri (git-reference
(url "https://github.com/engstrand-config/dwl-guile")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0z8ls92cgkry0fvybqzvg8jplwh3zjakdmq79kfxbczabvyijxk8"))))))

(define* (patch-dwl-guile-package pkg #:key (patches '()))
"Create a new patched package of PKG with each patch in PATCHES
Expand Down