--- Begin Message ---
Subject: |
[PATCH] services: xorg-wrapper: Support xorg server input |
Date: |
Sun, 12 Feb 2023 19:52:40 +0100 |
User-agent: |
mu4e 1.8.13; emacs 29.0.50 |
Hello Guix,
I would like to replace the Mesa package in my Xorg configuration. I
tried to do this with the following snippet:
```
(modify-services %desktop-services
(slim-service-type config =>
(slim-configuration
(inherit config)
(xorg-configuration
(xorg-configuration
(server (replace-mesa xorg-server)))))))
```
But this unfortunately does not work, because the xorg-wrapper uses
static paths for the mesa, xkbcomp and xkeyboard-config packages in the
derivation.
The xserver starts now with the replaced mesa, but some paths still
point to the hard coded packages in Guix itself (and not the
replacement), which cause some things to not work.
This patch changes this to lookup the paths from the inputs of the
server field of the xorg-configuration instead. That way the correct
paths are setup in the xor-wrapper script. If those inputs are not found
for some reason it falls back to the current behavior, using the
packages from Guix.
Could you please review this?
Thanks, Roman.
0001-services-xorg-wrapper-Support-xorg-server-input-tran.patch
Description: Text Data
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#61458: [PATCH] services: xorg-wrapper: Support xorg server input |
Date: |
Sat, 25 Mar 2023 10:11:04 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Roman Scherer <roman@burningswell.com> writes:
> services: xorg-wrapper: Support xorg server input rewriting.
Pushed with some commit description added:
* gnu/services/xorg.scm (xorg-configuration-server-package-path)
(xorg-configuration-dri-driver-path, xorg-configuration-xkb-bin-dir)
(xorg-configuration-xkb-dir): New procedures.
(xorg-wrapper): Use them for dri and xkb paths.
Thank you!
--- End Message ---