aboutsummaryrefslogtreecommitdiff
path: root/grammars.nix
Commit message (Collapse)AuthorAge
* Make nix flake respect unused grammars (#9326)Sebastian Zivota2024-01-14
| | | | | | | | | | | | | * Make nix flake respect unused grammars * Use default value * Refactor * Take use-grammars.only into account --------- Co-authored-by: Sebastian Zivota <sebastian.zivota@mailbox.org>
* grammars.nix: allow the user to apply overlays (#8749)mydumpfire2023-11-09
| | | | | | You can now apply overlays to the grammar derivations via `grammarOverlays`. Also, the `src` in the derivation is now properly unpacked to the build directory, allowing the user to mutate the source files if they want to.
* nix: replace `runCommandNoCC` with `runCommand` (#3992)Erin Kim2022-09-27
|
* build(nix): add a way to override what grammars get built (#3141)Yusuf Bera Ertan2022-07-27
|
* chore(nix): format nix files with alejandra, update deps, minor code ↵Yusuf Bera Ertan2022-06-06
| | | | refactors (#2683)
* Use fromTOML on Nix >= 2.6.0 (#1892)Max2022-03-30
|
* grammars.nix: use github type for fetchTree where possible (#1872)Max2022-03-28
|
* flake: use builtins.fetchTree to shallow-clone grammar reposMichael Davis2022-03-10
| | | | | | | | | | | Here we perform a shallow fetch using builtins.fetchTree. In order to make this work, we need to specify the `ref' for any repository that doesn't have `master' as its default branch (I'm not sure why this limitation exists since we don't need this when performing the shallow fetch in `--grammar build') This `ref' field is ignored by helix, so I have left it undocumented for now, but I could be open to documenting it.
* fetch and build grammars with nix in flakeMichael Davis2022-03-10
This commit replaces the out-of-date builder in the flake which relied on submodules for fetching and the compiler for building. Now we disable fetching and building explicitly with the environment variable and then use builtins.fetchGit and a derivation mostly derived from upstream to compile the grammars. Anecdotally, this is still quite slow as builtins.fetchGit does not seem to do shallow clones. I'm not sure I see a way around it though without recording sha256s, which seems cumbersome.