| 11 Dec 2025 |
magic_rb | Then you dont need a flag, if set NIX_WAYLAND_PROTOCOLS then | 08:38:57 |
magic_rb | Call nix in setup.hs will make it impossible to build in a nix sandbox without the recursive-nix feature | 08:39:47 |
magic_rb | * Calling nix in setup.hs will make it impossible to build in a nix sandbox without the recursive-nix feature | 08:40:31 |
magic_rb | Or some other container/vm fuckery | 08:40:40 |
maralorn | Oh, I didn’t think of that possiblity. Yes, don’t call nix from Setup.hs, please. | 10:24:58 |
maralorn | btw. andromeda what are you coding for wayland? I am curious. | 10:25:25 |
andromeda | I'm working on a hobby game engine, felt writers block on the actually productive part, and decided to replace the perfectly good and battle tested GLFW-b with ffi bindings to RGFW | 12:09:57 |
andromeda | and I want it to be Waylvnd native rather than accessible through wayland satellite or something | 12:12:52 |
andromeda | but honestlyayland's a pan in the kiester and that could be a later addition | 12:13:42 |
maralorn | I'd say enjoy that you don't have a manager with a deadline and do whatever is most fun/ the greatest learning experience. 😂 | 12:17:11 |
andromeda | wait my brain is empty - if on a non-nix distro, I need to have setup.hs do wayland bs. I can otherwise just do it from the derivation 🤦♀️ | 12:25:12 |
andromeda | I used cabal2nix to get a derivation and it builds with callPackage but I want to run a pre configure hook. How ought I go about doing that? | 15:53:25 |
andromeda | found it | 16:33:16 |
andromeda | preBuild | 16:33:24 |
andromeda | yesss it builds, finding the wayland headers and generating the code and everything, with both nix build on a Nix system and cabal build in a Kubuntu VM (after imperatively installing deps, ofc) | 16:38:12 |
andromeda | however, cabal build fails when in a development shell on nix - a loss I'm willing to live with for now. | 16:52:48 |