Skip to content

A Nix flake for tree-sitter-graph. Construct graphs from parsed source code

License

Notifications You must be signed in to change notification settings

rupurt/tree-sitter-graph-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tree-sitter-graph-nix

A Nix flake for tree-sitter-graph. Construct graphs from parsed source code

Custom Flake with Overlay

# 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

About

A Nix flake for tree-sitter-graph. Construct graphs from parsed source code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages