Skip to content

Instantly share code, notes, and snippets.

@jlesquembre
Last active July 5, 2020 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlesquembre/a03a2e553a8ffdbeff6609ec9d0238e2 to your computer and use it in GitHub Desktop.
Save jlesquembre/a03a2e553a8ffdbeff6609ec9d0238e2 to your computer and use it in GitHub Desktop.
Janet lang shell
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