Last active
July 1, 2024 20:18
-
-
Save jjwatt/c83c02e6903c8ffaf546fe5eb27e7d25 to your computer and use it in GitHub Desktop.
tic-80 building on nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { pkgs ? import <nixpkgs> {} }: | |
| pkgs.mkShell { | |
| # inputsFrom = with pkgs; [ pkgconfig autoconf automake gnumake ]; | |
| buildInputs = with pkgs; [ | |
| gcc | |
| pkgconfig | |
| autoconf | |
| automake | |
| libtool | |
| pcre | |
| gnumake | |
| SDL2 | |
| SDL2_gfx | |
| SDL_image | |
| SDL2_ttf | |
| SDL2_mixer | |
| harfbuzz | |
| curl | |
| gtk3 | |
| gtk3-x11 | |
| cmake | |
| cmakeCurses | |
| elementary-cmake-modules | |
| extra-cmake-modules | |
| libglvnd | |
| mesa_glu | |
| mesa_glu | |
| freeglut | |
| alsaLib | |
| ]; | |
| } |
P.S. Feel free to take my work and contribute it to nixpkgs.
Thanks for preparing the package, @winny-! I made a PR to nixpkgs here: NixOS/nixpkgs#291129
Author
Great work ya'll! I haven't touched it in ages. I'm glad to see it's still going.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there, I just tested my linked TIC-80 derivation using
nix-build -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'and it completed successfully. Let's see if we can figure it out! I'm using 23.11 as well. Are you trying to build a local copy? Might be best to take one of the working derivations, then change thesrcto point to your path. This way it'll build the same way as if pulling from upstream.