Repository navigation
Packaging XLibre in NixOS #10
affhp
started this conversation in
XLibre on NixOS
Replies: 0 comments 14 replies
2 replies
|
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. |
1 reply
|
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 X11Libre/packaging#4 and the other distribution specific categories. |
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


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
xorgi.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
xorgis defined here inpkgs/top-level/all-packages.nixThe 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.nixandpkgs/servers/x11/xorg/overrides.nix, so I looked into it.I found that
xorg.xorgserveris packaged here inpkgs/servers/x11/xorg/default.nixI 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
srcofxorg.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.nixand disabled it.I run
nix build .#xorg.xorgserveragain within the repo directory, it complainThen I looked into source code of xlibre and xorg, the file of
configureandconfigure.acis missing in xlibre. Seems like the code inpkgs/servers/x11/xorg/default.nixxorg.xorgserversection rely on those files to buildxorg.xorgserver. I looked into some example like AUR and some youtube tutorial, they are using a commandmesonto configure and compile, some use bothmesonandninja. So some nix code need to be changed in thexorg.xorgserverto use those tool to build it.All reactions