Files
tree-sitter-jhcl/shell.nix

20 lines
461 B
Nix
Raw Normal View History

2021-06-07 20:50:00 +02:00
let
2021-06-13 14:27:31 +02:00
nixpkgs = fetchTarball {
name = "nixpkgs";
url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/21.05.tar.gz";
sha256 = "1ckzhh24mgz6jd1xhfgx0i9mijk6xjqxwsshnvq789xsavrmsc36";
};
pkgs = import nixpkgs {};
2021-06-07 20:50:00 +02:00
in
2021-06-13 14:27:31 +02:00
pkgs.mkShell {
2021-06-07 20:50:00 +02:00
name = "env";
2021-06-13 14:27:31 +02:00
buildInputs = with pkgs; [
nodejs
];
2021-06-07 20:50:00 +02:00
shellHook = ''
2021-06-13 14:27:31 +02:00
PATH=./node_modules/.bin:$PATH
command -v tree-sitter >/dev/null 2>&1 || npm install tree-sitter-cli@0.20.6
2021-06-07 20:50:00 +02:00
'';
}
2021-06-13 14:27:31 +02:00