mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
doc: update Nix code snippets format
Command: `mdcr --config doc/tests/mdcr-config.toml doc/`
This commit is contained in:
parent
5d979e79ce
commit
bcea0cf344
86 changed files with 2485 additions and 1478 deletions
|
@ -7,16 +7,20 @@ Python bindings for Tree Sitter grammars are provided through the [py-tree-sitte
|
|||
For example, to experiment with the Rust grammar, you can create a shell environment with the following configuration:
|
||||
|
||||
```nix
|
||||
{ pkgs ? <nixpkgs> {} }:
|
||||
{
|
||||
pkgs ? <nixpkgs> { },
|
||||
}:
|
||||
|
||||
pkgs.mkShell {
|
||||
name = "py-tree-sitter-dev-shell";
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
(python3.withPackages (ps: with ps; [
|
||||
tree-sitter
|
||||
tree-sitter-grammars.tree-sitter-rust
|
||||
]))
|
||||
(python3.withPackages (
|
||||
ps: with ps; [
|
||||
tree-sitter
|
||||
tree-sitter-grammars.tree-sitter-rust
|
||||
]
|
||||
))
|
||||
];
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue