Last active
July 5, 2020 14:43
-
-
Save jlesquembre/a03a2e553a8ffdbeff6609ec9d0238e2 to your computer and use it in GitHub Desktop.
Janet lang shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
# First time it will take some time | |
pkgs = import (fetchTarball https://github.com/nixos/nixpkgs/archive/22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1.tar.gz) { }; | |
JANET_PATH = toString ./janet; | |
in | |
pkgs.mkShell { | |
inherit JANET_PATH; | |
buildInputs = [ | |
pkgs.janet | |
]; | |
shellHook = '' | |
mkdir -p ${JANET_PATH} | |
''; | |
} | |
# Next steps: | |
# nix-shell (only needed if you don't use direnv) | |
# jpm install spork | |
# janet -e "(import spork/netrepl) (netrepl/server)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment