Stream: beginners

Topic: ✔ Configuring dev environment


view this post on Zulip Ian McLerran (Jul 18 2025 at 16:24):

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?

view this post on Zulip Anton (Jul 18 2025 at 16:32):

Hi @Ian McLerran,
The new compiler uses a different flake, so you need to do:

nix develop ./src

view this post on Zulip Ian McLerran (Jul 18 2025 at 16:34):

Ahhh.. of course. Thanks!

view this post on Zulip Notification Bot (Jul 18 2025 at 16:34):

Ian McLerran has marked this topic as resolved.

view this post on Zulip Brendan Hansknecht (Jul 19 2025 at 13:39):

Or just manually install zig 0.14.*

No other deps needed for most work


Last updated: Jul 26 2025 at 12:14 UTC