TIC-80 icon indicating copy to clipboard operation
TIC-80 copied to clipboard

Building for Nix results in no GUI

Open rschulman opened this issue 2 years ago • 1 comments

Hello! I'm working on putting together a derivation (build script, essentially) for Nix. The build is currently completing successfully, but the resulting binary is printing to stdout:

 TIC-80 tiny computer
 version 1.0.0 ()
 https://tic80.com (C) 2017-1980

 hello! type help for help
>

but not creating its own window. In addition, typing anything at the prompt results in no response.

I'm guessing that this is being caused by a missing dependency (at least that makes the most sense to me given the circumstances). Anyone have an idea of what might be missing that would cause behavior like this but which would not break the build itself?

Thanks!

rschulman avatar May 16 '22 21:05 rschulman

We use SDL2 lib to render UI, I think SDL2 didn't create the window for some reason.

nesbox avatar May 18 '22 05:05 nesbox

@rschulman Any luck on this?

joshgoebel avatar Dec 04 '22 17:12 joshgoebel

I still have this issue.

44100hertz avatar Apr 23 '23 18:04 44100hertz

Hello, this issue is an issue with Nix, not with TIC-80. See my derivation here https://github.com/winny-/nixos-configs/blob/master/package-overrides/tic-80/default.nix

The root cause was due to how Nix handles libraries, and there are documented work arounds in the SDL2 derivation.

This ticket should have been created as a discussion in the Nix Discourse or nixpkgs github repository as it is an issue specific to Nix and packaging Tic-80 on nix.

winny- avatar Apr 28 '23 06:04 winny-