someodd, 8 months ago to random After much failure with trying to get my #haskell #sdl2 project running with #nix, I find the workaround is to use an environmental variable to set SDL_RENDER_DRIVER=software and skip using drivers entirely, I guess?
After much failure with trying to get my #haskell #sdl2 project running with #nix, I find the workaround is to use an environmental variable to set SDL_RENDER_DRIVER=software and skip using drivers entirely, I guess?
SDL_RENDER_DRIVER=software
someodd, 8 months ago to random Okay, productivity set-back: I can't figure out how to get #haskell #sdl2 library working with #nix I usually get sdlExceptionError "Couldn't find matching render driver" or "Couldn't find matching GLX visual."
Okay, productivity set-back: I can't figure out how to get #haskell #sdl2 library working with #nix
I usually get sdlExceptionError "Couldn't find matching render driver" or "Couldn't find matching GLX visual."
someodd, 8 months ago I can try something like this: $ SDL_DEBUG=1 SDL_VIDEODRIVER=wayland nix run pkg-exe: SDLCallFailed {sdlExceptionCaller = "SDL.Video.createRenderer", sdlFunction = "SDL_CreateRenderer", sdlExceptionError = "Parameter 'window' is invalid"}
I can try something like this:
$ SDL_DEBUG=1 SDL_VIDEODRIVER=wayland nix run pkg-exe: SDLCallFailed {sdlExceptionCaller = "SDL.Video.createRenderer", sdlFunction = "SDL_CreateRenderer", sdlExceptionError = "Parameter 'window' is invalid"}
someodd, 8 months ago to random Potential #haskell productivity boost ⚠️ I think the #GHC binaries from #ghcup are compiled to ignore Haddock comments (for "non-builtin" depends), so they don't show up in #vscode. I'm using this Nix Flake template: https://zero-to-flakes.com/haskell-flake/start/ I maybe changed 1 line in the default flake (ghc92) and now see pic. #cabal + #nixpkgs for depends 💯 I think this all lets you use same HLS, GHC, and Cabal as me, + reproduce my builds, run tests, with 1 or 2 commands. #nix is reproducible magic.
Potential #haskell productivity boost ⚠️
I think the #GHC binaries from #ghcup are compiled to ignore Haddock comments (for "non-builtin" depends), so they don't show up in #vscode.
I'm using this Nix Flake template: https://zero-to-flakes.com/haskell-flake/start/
I maybe changed 1 line in the default flake (ghc92) and now see pic.
#cabal + #nixpkgs for depends 💯
I think this all lets you use same HLS, GHC, and Cabal as me, + reproduce my builds, run tests, with 1 or 2 commands.
#nix is reproducible magic.