Work on Hyprland

This commit is contained in:
Daniel Ziltener 2023-12-10 00:33:27 +01:00
parent 645f72f5f2
commit fdb491f2a4
Signed by: zilti
GPG key ID: B38976E82C9DAE42

View file

@ -127,22 +127,27 @@ rasterisation.")
(build-system meson-build-system)
(arguments
`(#:configure-flags
'("-Dbackends=drm")
'("-Dlibinput-backend=enabled"
"-Dauto_features=enabled")
#:phases
(modify-phases %standard-phases
(add-before 'configure 'hardcode-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "xwayland/server.c"
(("Xwayland") (string-append (assoc-ref inputs
"xorg-server-xwayland")
"/bin/Xwayland")))
#t))
(add-before 'configure 'fix-meson-file
(lambda* (#:key native-inputs inputs #:allow-other-keys)
(substitute* "backend/drm/meson.build"
(("/usr/share/hwdata/pnp.ids")
(string-append (assoc-ref (or native-inputs inputs) "hwdata")
"/share/hwdata/pnp.ids"))))))))
(modify-phases
%standard-phases
(add-before 'configure 'pre-configure
(lambda* (#:key outputs #:allow-other-keys)
(system "pkg-config --list-all")))
(add-before 'configure 'hardcode-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "xwayland/server.c"
(("Xwayland") (string-append (assoc-ref inputs
"xorg-server-xwayland")
"/bin/Xwayland")))
#t))
(add-before 'configure 'fix-meson-file
(lambda* (#:key native-inputs inputs #:allow-other-keys)
(substitute* "backend/drm/meson.build"
(("/usr/share/hwdata/pnp.ids")
(string-append (assoc-ref (or native-inputs inputs) "hwdata")
"/share/hwdata/pnp.ids"))))))))
(propagated-inputs
(list ;; As required by wlroots.pc.
eudev
@ -170,6 +175,8 @@ rasterisation.")
`(,hwdata "pnp")
cmake
hwdata
mesa-headers
vulkan-header
pkg-config
wayland
(if (%current-target-system)