Stream: beginners

Topic: ✔ Roc install using Nix


view this post on Zulip icrayix (Dec 07 2023 at 17:45):

Hi,

is it possible to install Roc using Nix (or any other package manager) without having to use the install script?

view this post on Zulip Asbjørn Olling (Dec 07 2023 at 17:47):

yup! the roc repo is a nix flake, so you can use that.

view this post on Zulip Asbjørn Olling (Dec 07 2023 at 17:49):

FWIW, I just added
(builtins.getFlake "github:roc-lang/roc").packages.x86_64-linux.default)
to my environment.systemPackages list i my nixos configuration.nix file
That should build and include roc from the latest main

view this post on Zulip icrayix (Dec 07 2023 at 17:50):

oh thanks! Perhaps should've looked myself first :)

view this post on Zulip Asbjørn Olling (Dec 07 2023 at 17:50):

no worries

view this post on Zulip Notification Bot (Dec 07 2023 at 17:50):

icrayix has marked this topic as resolved.

view this post on Zulip Asbjørn Olling (Dec 07 2023 at 17:51):

if you want to write derivations to build code written in roc, I think the best place to look right now is in this project:
https://github.com/JRMurr/roc2nix


Last updated: Jul 06 2025 at 12:14 UTC