Cross Compiling: Difference between revisions

imported>Symphorien
m mention the name of the file, now that the header is gone
imported>Symphorien
add a link to the examples of target systems in nixpkgs
Line 27: Line 27:
{{commands|nix-shell crossShell.nix}}
{{commands|nix-shell crossShell.nix}}
The resulting shell will have <code>$CC</code> etc. set to the right compiler.
The resulting shell will have <code>$CC</code> etc. set to the right compiler.
Examples of how to specify your target system can be found in [https://github.com/NixOS/nixpkgs/blob/master/lib/systems/examples.nix lib/systems/examples.nix].


== How to specify dependencies ==
== How to specify dependencies ==