Packaging XLibre in NixOS #194
Replies: 3 comments 11 replies
-
Beta Was this translation helpful? Give feedback.
-
Try this: I call it experimental just because I only have two x86_64-linux bare metal to test it out. It should be safe to use. |
Beta Was this translation helpful? Give feedback.
-
Very nice to see you all working on XLibre packages for NixOS! If you need some support from the XLibre team just let me know. We could provide e.g. a category in the XLibre discussions like X11Libre Xlibre On Arch Linux · Discussions · GitHub with a welcome page like this Welcome to XLibre on Arch Linux! · X11Libre · Discussion #213 and the other distribution specific categories. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have spent a little bit of time on it, but still not even past the first step because of skill issue (I am not a programmer).
So I open this for discussion.
Maybe I just start it by sharing what I think and have done, please correct me if I am wrong.
First , all the xorg packages are group in the big attribute set
xorg
i.e. https://search.nixos.org/packages?channel=25.05&from=0&size=50&sort=relevance&type=packages&query=xorg
And I am going to target
xorg.xorgserver
.That
xorg
is defined here inpkgs/top-level/all-packages.nix
The code is hard to understand for me. But In the code, at least I can see it is calling the file
pkgs/servers/x11/xorg/default.nix
andpkgs/servers/x11/xorg/overrides.nix
, so I looked into it.I found that
xorg.xorgserver
is packaged here inpkgs/servers/x11/xorg/default.nix
I cloned the repo onto my computer. Then I installed
nurl
, a tool to generate fetcher call. I ran this command:to produce a output that can be used to replace
src
ofxorg.xorgserver
. Then I addfetchFromGitHub
(produced bynurl
) in this position as dependency.Then within the repo directory I run
nix build .#xorg.xorgserver
. It prompt an error about patches cannot be applied.I found the patch here in
pkgs/servers/x11/xorg/overrides.nix
and disabled it.I run
nix build .#xorg.xorgserver
again within the repo directory, it complainThen I looked into source code of xlibre and xorg, the file of
configure
andconfigure.ac
is missing in xlibre. Seems like the code inpkgs/servers/x11/xorg/default.nix
xorg.xorgserver
section rely on those files to buildxorg.xorgserver
. I looked into some example like AUR and some youtube tutorial, they are using a commandmeson
to configure and compile, some use bothmeson
andninja
. So some nix code need to be changed in thexorg.xorgserver
to use those tool to build it.Beta Was this translation helpful? Give feedback.
All reactions