Cross Compiling: Difference between revisions
Appearance
imported>Makefu add introduction to cross-compiling by mbauer |
imported>Samueldr What a fine way to put the triple in perspective. |
||
Line 15: | Line 15: | ||
* Nixpkgs manual on [https://nixos.org/nixpkgs/manual/#chap-cross cross compiling] | * Nixpkgs manual on [https://nixos.org/nixpkgs/manual/#chap-cross cross compiling] | ||
* [https://matthewbauer.us/blog/beginners-guide-to-cross.html Introduction to Cross Compilation with nix by Matthew Bauer] | * [https://matthewbauer.us/blog/beginners-guide-to-cross.html Introduction to Cross Compilation with nix by Matthew Bauer] | ||
== Additional resources == | |||
* [https://logs.nix.samueldr.com/nixos/2018-08-03#1533327247-1533327971; 2018-08-03 discussion on #nixos] |
Revision as of 20:30, 3 August 2018
☶︎
This article or section needs to be expanded. Further information may be found in the related discussion page. Please consult the pedia article metapage for guidelines on contributing.
For building arm software check out the Article NixOS on ARM
If you are looking for building 32bit software, check out Packaging/32bit Applications
Quick example to cross compile a package: Cheatsheet#Cross-compile_packages.
Cross-Compiling in nixpkgs unstable (pre-18.09)
A lot has happened in 2018 and now cross-compilation is well supported within the ubstable branch of nixpkgs.
The basic idea is to use pkgsCross.platform
instead of pkgs
:
nix build -f channel:nixos-unstable pkgsCross.raspberryPi.emacs
References
- Nixpkgs manual on cross compiling
- Introduction to Cross Compilation with nix by Matthew Bauer