Building window manager on non-NixOS Linux

I’ve been having an interesting time trying to get my window manager build ported from NixOS to other Linux systems using Nix:

Currently I was looking at nixGL to fix build-time linking issues for OpenGL (EGL) libraries, etc, but haven’t been able to get that working as yet. What do folks suggest in general at this point in time?

One valid option might be: don’t use Nix on non-NixOS, for most graphical applications.

That’s what I landed on, after attempting to use nix on Arch for months. NixGL is somehow inadequate - very hit-or-miss depending on the app. You can still give it a try though and see if it works for you.

nix run github:nix-community/nixGL#nixGLIntel -- <program> should “just work” in many cases. (Replace <program> and possibly nixGLIntel as needed)

1 Like