Skip to content

Instantly share code, notes, and snippets.

@pmarreck
Created September 30, 2024 14:39
Show Gist options
  • Save pmarreck/b3de701b61ae44720cbbb65dcaf65885 to your computer and use it in GitHub Desktop.
Save pmarreck/b3de701b61ae44720cbbb65dcaf65885 to your computer and use it in GitHub Desktop.
Roc playground nix file for repl.it
# note: does not currently work?
{ pkgs ? import <nixpkgs> { } }:
let
rocPkgs = pkgs.fetchFromGitHub {
owner = "roc-lang";
repo = "roc";
rev = "main"; # Change to a specific commit or tag for stability
sha256 = "sha256-11yw9xh1719smxbp0ia03kkv6hrvw4l6hhvxjxa4w2i7wc2r6yqy"; # You can fetch the sha256 from `nix-prefetch-url`
};
roc = import (rocPkgs + "/packages") { inherit pkgs; };
in
{
deps = [
roc.cli
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment