1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00
nixpkgs/lib/systems
Matthew Bauer 9c8fd41224 treewide: add emulator to platform
You can use stdenv.hostPlatform.emulator to get an executable that
runs cross-built binaries. This could be any emulator. For instance,
we use QEMU to emulate Linux targets and Wine to emulate Windows
targets. To work with qemu, we need to support custom targets.

I’ve reworked the cross tests in pkgs/test/cross to use this
functionality.

Also, I’ve used talloc to cross-execute with the emulator. There
appears to be a cross-execute for all waf builds. In the future, it
would be nice to set this for all waf builds.

Adds stdenv.hostPlatform.qemuArch attrbute to get the qemuArch for
each platform.
2018-11-29 19:15:30 -06:00
..
default.nix treewide: add emulator to platform 2018-11-29 19:15:30 -06:00
doubles.nix tests/systems.nix: fix tests 2018-10-18 14:12:49 -05:00
examples.nix systems/examples.nix: move riscv function to let binding 2018-11-29 19:15:28 -06:00
for-meta.nix hurd: cleanup unmaintained target 2018-08-28 22:18:02 +01:00
inspect.nix avr: use new compilation infrastructure 2018-10-29 14:34:09 -05:00
parse.nix systems/examples: add i686 & x86-64 embedded 2018-10-30 13:46:01 -05:00
platforms.nix lib.systems.platforms: Add more ARM autodetection 2018-10-31 19:04:06 -04:00