-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathflake.nix
43 lines (40 loc) · 1.03 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
flakelight.url = "github:nix-community/flakelight";
};
outputs =
{ flakelight, ... }@inputs:
flakelight ./. {
inherit inputs;
packages.default =
pkgs:
pkgs.callPackage
(flakelight.inputs.nixpkgs + "/pkgs/development/tools/parsing/tree-sitter/grammar.nix")
{ }
{
language = "roc";
src = ./.;
inherit (pkgs.tree-sitter) version;
};
withOverlays = [
(final: prev: { tree-sitter-web = prev.tree-sitter.override { webUISupport = true; }; })
];
#This allows calling tree-sitter webui stuff
devShells.webui.packages =
pkgs: with pkgs; [
nodejs_20
tree-sitter-web
python3
gcc
];
# default devshell that doesn't require tons of dependencies
devShell.packages =
pkgs: with pkgs; [
nodejs_20
tree-sitter
python3
gcc
];
};
}