lumpsoid c6b077c864 Merge pull request #1 from mx42/main
feat: make it runnable with buildFHSEnv
2025-05-04 13:42:59 +00:00
2024-08-26 20:17:32 +02:00
2025-04-22 12:04:13 +02:00

test attempt on creatin derivation on nix to provide wrapped burrito overlay for the guild wars 2

for now it is a simple starting point in making derivations to provide packages on nix

I'll probably never get it to the end, because the person who pushed me to try this, dropped nixos, so, I don't have a tester.

But I want to get it to the point, where I can run burrito.x86_64 without getting not found *.so errors.

ldd ./burrito.x86_64
>	linux-vdso.so.1 (0x00007ffd3315b000)
>	libc.so.6 => /nix/store/5adwdl39g3k9a2j0qadvirnliv4r7pwd-glibc-2.39-52/lib/libc.so.6 (0x00007effafd83000)
>	/lib64/ld-linux-x86-64.so.2 => /nix/store/5adwdl39g3k9a2j0qadvirnliv4r7pwd-glibc-2.39-52/lib64/ld-linux-x86-64.so.2 (0x00007effaff7c000)
>	libXcursor.so.1 => not found
>	libXinerama.so.1 => not found
>	libXext.so.6 => not found
>	libXrandr.so.2 => not found
>	libXrender.so.1 => not found
>	libX11.so.6 => not found
>	libXi.so.6 => not found
>	libGL.so.1 => not found
>	libpthread.so.0 => /nix/store/5adwdl39g3k9a2j0qadvirnliv4r7pwd-glibc-2.39-52/lib/libpthread.so.0 (0x00007effafd7c000)
>	libdl.so.2 => /nix/store/5adwdl39g3k9a2j0qadvirnliv4r7pwd-glibc-2.39-52/lib/libdl.so.2 (0x00007effafd75000)
>	libm.so.6 => /nix/store/5adwdl39g3k9a2j0qadvirnliv4r7pwd-glibc-2.39-52/lib/libm.so.6 (0x00007effafc8f000)

to solve this, as I understand it, I need to use makeWrapper in nativeBuildInputs, and then provide all packages in pkgs.lib.makeBinPath (with pkgs; [ xorg.libX11 ])

burrito repo is now working on automated github workflows to create a CI system, so I can have a sneak peek at the build process when they will finish it, because now I can't find any clues from the repo inself. I don't know how godot projects works in this regard.

Additional notes

Running nix develop (or using direnv) allows to run burrito-gw2, however it doesn't quite work in stand-alone because burrito invokes ./xml_converter, a fix is to copy this file (found in burrito release) to the current folder.

It currently involves building a FHS env to satisfy burrito dependencies.

I'll explore building from sources from within Nix.

Also I'm planning to try and add some config options like the GW2 path so the .dll could be symlinked in it.

Description
No description provided
Readme 58 KiB
Languages
Nix 98.9%
Shell 1.1%