Work on Hyprland
This commit is contained in:
parent
645f72f5f2
commit
fdb491f2a4
1 changed files with 22 additions and 15 deletions
|
@ -127,22 +127,27 @@ rasterisation.")
|
||||||
(build-system meson-build-system)
|
(build-system meson-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
`(#:configure-flags
|
||||||
'("-Dbackends=drm")
|
'("-Dlibinput-backend=enabled"
|
||||||
|
"-Dauto_features=enabled")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases
|
||||||
(add-before 'configure 'hardcode-paths
|
%standard-phases
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(add-before 'configure 'pre-configure
|
||||||
(substitute* "xwayland/server.c"
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(("Xwayland") (string-append (assoc-ref inputs
|
(system "pkg-config --list-all")))
|
||||||
"xorg-server-xwayland")
|
(add-before 'configure 'hardcode-paths
|
||||||
"/bin/Xwayland")))
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
#t))
|
(substitute* "xwayland/server.c"
|
||||||
(add-before 'configure 'fix-meson-file
|
(("Xwayland") (string-append (assoc-ref inputs
|
||||||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
"xorg-server-xwayland")
|
||||||
(substitute* "backend/drm/meson.build"
|
"/bin/Xwayland")))
|
||||||
(("/usr/share/hwdata/pnp.ids")
|
#t))
|
||||||
(string-append (assoc-ref (or native-inputs inputs) "hwdata")
|
(add-before 'configure 'fix-meson-file
|
||||||
"/share/hwdata/pnp.ids"))))))))
|
(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
|
(propagated-inputs
|
||||||
(list ;; As required by wlroots.pc.
|
(list ;; As required by wlroots.pc.
|
||||||
eudev
|
eudev
|
||||||
|
@ -170,6 +175,8 @@ rasterisation.")
|
||||||
`(,hwdata "pnp")
|
`(,hwdata "pnp")
|
||||||
cmake
|
cmake
|
||||||
hwdata
|
hwdata
|
||||||
|
mesa-headers
|
||||||
|
vulkan-header
|
||||||
pkg-config
|
pkg-config
|
||||||
wayland
|
wayland
|
||||||
(if (%current-target-system)
|
(if (%current-target-system)
|
||||||
|
|
Loading…
Reference in a new issue