Cross Compiling: Difference between revisions
majorly overhaul the cross-compilation page with more details, better examples, and modernized nix code. |
m add section for basics. |
||
| Line 33: | Line 33: | ||
== Development == | == Development == | ||
=== Basics === | |||
Using the same ideas as above, we can create development environments which provide us with a compilation suite that can perform cross-compilation for us. A very simple [[Development environment with nix-shell|development shell]] (colloquially called a "devshell") can be written as:<syntaxhighlight lang="nix"> | Using the same ideas as above, we can create development environments which provide us with a compilation suite that can perform cross-compilation for us. A very simple [[Development environment with nix-shell|development shell]] (colloquially called a "devshell") can be written as:<syntaxhighlight lang="nix"> | ||
# shell.nix | # shell.nix | ||