Skip to content

Instantly share code, notes, and snippets.

@jjwatt
Last active July 1, 2024 20:18
Show Gist options
  • Select an option

  • Save jjwatt/c83c02e6903c8ffaf546fe5eb27e7d25 to your computer and use it in GitHub Desktop.

Select an option

Save jjwatt/c83c02e6903c8ffaf546fe5eb27e7d25 to your computer and use it in GitHub Desktop.
tic-80 building on nix
{ 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
];
}
@winny-

winny- commented Jan 26, 2024

Copy link
Copy Markdown

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 the src to point to your path. This way it'll build the same way as if pulling from upstream.

@winny-

winny- commented Jan 26, 2024

Copy link
Copy Markdown

P.S. Feel free to take my work and contribute it to nixpkgs.

@blinry

blinry commented Feb 24, 2024

Copy link
Copy Markdown

Thanks for preparing the package, @winny-! I made a PR to nixpkgs here: NixOS/nixpkgs#291129

@jjwatt

jjwatt commented Jul 1, 2024

Copy link
Copy Markdown
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