Hey I was just trying to build the zig version of the compiler for the first time, and I'm running into some hiccups. Wonder if I'm missing some things in my environment setup.
First, zig build
gives me:
(nix:nix-shell-env) Ians-MacBook-Air:roc imclerran$ zig build
/Users/imclerran/source/roc/roc/build.zig.zon:2:14: error: expected string literal
.name = .roc,
^~~
I changed .roc
, to ".roc"
, and that error was resolved, but then it gives me this error message:
/Users/imclerran/source/roc/roc/build.zig.zon:8:21: error: unsupported hash function: only sha2-256 is supported
.hash = "afl_kit-0.1.0-uhOgGEEbAADSSVtFLWc0eoZFxVLiELWLNldB9K_f9x5L",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Seems like I shouldn't need to be editing any files to do a build. I ran nix develop
, but is there anything else I need to configure my dev environment?
Hi @Ian McLerran,
The new compiler uses a different flake, so you need to do:
nix develop ./src
Ahhh.. of course. Thanks!
Ian McLerran has marked this topic as resolved.
Or just manually install zig 0.14.*
No other deps needed for most work
Last updated: Jul 26 2025 at 12:14 UTC