Gram: Difference between revisions

Smudgebun (talk | contribs)
Removed unnecessary note
Klinger (talk | contribs)
 
(5 intermediate revisions by one other user not shown)
Line 9: Line 9:
=== Installing Extensions ===
=== Installing Extensions ===


Gram, unlike Zed, builds extensions locally. This means it needs a Rust WASI Toolchain and <code>clang</code> available to it.
Gram, unlike Zed, builds extensions locally. This means it needs a Rust WASI Toolchain and <code>clang</code> available to it while installing them. Currently, the easiest way to do this is using something like [https://github.com/nix-community/fenix nix-community/fenix] (the same should be able to be done with [https://github.com/oxalica/rust-overlay rust-overlay]).
 
Currently, the easiest way to do this is using something like [https://github.com/nix-community/fenix nix-community/fenix] (the same should be able to be done with [https://github.com/oxalica/rust-overlay rust-overlay]).


Add <code>fenix</code> to your flake
Add <code>fenix</code> to your flake
Line 34: Line 32:
}}
}}


You should be able to copy & paste the <code>let in</code> statement with any of the usage examples below (unless otherwise specified) into a nix module of the appropriate type (<code>homeManager</code>, <code>nixos</code>, <code>devShell</code>).
You should be able to copy & paste the <code>let in</code> statement with any of the usage examples below (unless otherwise specified) into a nix module of the appropriate type (<code>homeManager</code>, <code>nixos</code>, <code>devShell</code>). Note that the <code>devShell</code> examples will only work if you launch Gram from in the shell.


==== Let In Statement ====
==== Let In Statement ====
Line 132: Line 130:
</nowiki>
</nowiki>
}}
}}
==== More About Extensions ====
* [https://discourse.nixos.org/t/fail-to-add-extensions-to-gram/78466/2 NixOS Discourse: Fail To Add Extensions To Gram]
* [[Talk:Gram#Using_Rustup_for_Building_Extensions]]
[[Category:Applications]] [[Category:Text Editor]]