https://github.com/rupurt/tree-sitter-graph-nix
A Nix flake for tree-sitter-graph. Construct graphs from parsed source code
https://github.com/rupurt/tree-sitter-graph-nix
ast cst nix tree-sitter
Last synced: 6 months ago
JSON representation
A Nix flake for tree-sitter-graph. Construct graphs from parsed source code
- Host: GitHub
- URL: https://github.com/rupurt/tree-sitter-graph-nix
- Owner: rupurt
- License: mit
- Created: 2024-03-22T16:33:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T18:32:08.000Z (over 2 years ago)
- Last Synced: 2025-04-06T16:50:43.920Z (over 1 year ago)
- Topics: ast, cst, nix, tree-sitter
- Language: Nix
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-graph-nix
A Nix flake for [tree-sitter-graph](https://github.com/tree-sitter/tree-sitter-graph). Construct graphs from parsed source code
## Custom Flake with Overlay
```nix
# flake.nix
{
description = "Your Nix Flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
tree-sitter-graph-nix.url = "github:rupurt/tree-sitter-graph-nix";
};
outputs = {
self,
nixpkgs,
flake-utils,
tree-sitter-graph-nix,
...
}: let
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
outputs = flake-utils.lib.eachSystem systems (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [
tree-sitter-graph-nix.overlay
];
};
in {
# packages exported by the flake
packages = {};
# nix run
apps = {};
# nix fmt
formatter = pkgs.alejandra;
# nix develop -c $SHELL
devShells.default = pkgs.mkShell {
packages = [
pkgs.tree-sitter-graph-pkgs.default
];
};
});
in
outputs;
}
```
## License
`tree-sitter-graph-nix` is released under the [MIT license](./LICENSE)