-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
46 lines (43 loc) · 1.17 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
44
45
46
{
description = "tree-sitter-koka";
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }: {
overlays.default = _: prev: {
tree-sitter = prev.tree-sitter.override {
extraGrammars.tree-sitter-koka = {
language = "koka";
inherit (prev.tree-sitter) version;
src = _: builtins.path { path = ./.; name = "tree-sitter-koka-src"; };
};
};
};
} // utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
overlays = [ self.overlays.default ];
inherit system;
};
inherit (pkgs) clang-tools gdb mkShell nodejs nodePackages python3
tree-sitter typescript valgrind;
inherit (nodePackages) prettier typescript-language-server;
in
{
packages.default = tree-sitter.builtGrammars.tree-sitter-koka;
devShells.default = mkShell {
packages = [
clang-tools
gdb
nodejs
prettier
python3
tree-sitter
typescript
typescript-language-server
valgrind
];
};
});
}