New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tree-sitter.builtGrammars: build parser libraries #81412
Conversation
@GrahamcOfBorg build tree-sitter.builtGrammars |
cc @Profpatsch |
mkdir $out | ||
'' + (lib.concatStrings (lib.mapAttrsToList | ||
(name: grammar: "ln -s ${fetch grammar} $out/${name}\n") | ||
(import ./grammars)))); | ||
|
||
builtGrammars = let | ||
change = name: grammar: | ||
callPackage ./library.nix { language = name; version = "placeholder"; source = fetch grammar;} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let’s use the tree-sitter version here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s still "placeholder"
as far as I can see
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry I messed up the commit. Fixed.
840243b
to
850eb1f
Compare
except for typescript that provokes an error. These libraries can be used on neovim 0.5 for instance.
LGTM! |
except for typescript that provokes an error.
These libraries can be used on neovim 0.5 for instance.
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)