No description
  • Zig 99%
  • Nix 1%
Find a file
2024-01-12 22:36:25 +01:00
ROM added more roms 2023-10-01 18:35:04 +02:00
shaders initial commit 2023-07-19 01:33:37 +02:00
src began implementing key pressed 2024-01-12 22:36:25 +01:00
.envrc initial commit 2023-09-26 21:53:43 +02:00
.gitignore initial commit 2023-09-26 21:53:43 +02:00
build.zig initial commit 2023-09-26 21:53:43 +02:00
build.zig.zon initial working state 2023-09-30 19:11:19 +02:00
deps.nix updated build script and README 2024-01-10 22:51:46 +01:00
flake.lock updated build script and README 2024-01-10 22:51:46 +01:00
flake.nix Refactor 2024-01-12 17:52:43 +01:00
README.md updated README 2024-01-11 14:18:33 +01:00

CHIP-8

A CHIP-8 interpreter written in zig.

Building

Generic Linux

zig build

or run directly with

zig build run -- <path/to/ROM>

With Nix

nix build

or run directly with

nix run .# -- <path/to/ROM>

Developing with Nix

Enter the development environment with

nix develop

If the build.zig.zon file changes update the associated deps.nix with

zon2nix > deps.nix

TODO

  • Use Web-GPU via mach-gpu
  • Refactor Code
  • Restructure Repository
  • Package as Flake
    • This requires enabling Internet during the build process to accommodate Zig's new package manager. This can be achieved by enabling impure-derivations with --extra-experimental-features but this is broken. See https://github.com/NixOS/nix/issues/6478
    • Used zon2nix instead.

References