diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-11-29 19:34:20 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-29 19:34:20 -0600 |
commit | f435272ce351ed192e9ff9c643331a4cc063930e (patch) | |
tree | 09d2cd01d0062578f61c4712fb73ab6b29313b45 /lib/systems/examples.nix | |
parent | 1cd300e57b35b5e075a56ba9bea348f209620191 (diff) | |
parent | 9c8fd412248ad907eee7547b19bf3f7583d2c411 (diff) | |
download | nixlib-f435272ce351ed192e9ff9c643331a4cc063930e.tar nixlib-f435272ce351ed192e9ff9c643331a4cc063930e.tar.gz nixlib-f435272ce351ed192e9ff9c643331a4cc063930e.tar.bz2 nixlib-f435272ce351ed192e9ff9c643331a4cc063930e.tar.lz nixlib-f435272ce351ed192e9ff9c643331a4cc063930e.tar.xz nixlib-f435272ce351ed192e9ff9c643331a4cc063930e.tar.zst nixlib-f435272ce351ed192e9ff9c643331a4cc063930e.zip |
Merge pull request #50212 from matthewbauer/host-emulator
Add "emulator" function to systems
Diffstat (limited to 'lib/systems/examples.nix')
-rw-r--r-- | lib/systems/examples.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index acd673df666f..c799b9ec4496 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -2,7 +2,14 @@ # `crossSystem`. They are put here for user convenience, but also used by cross # tests and linux cross stdenv building, so handle with care! { lib }: -let platforms = import ./platforms.nix { inherit lib; }; in +let + platforms = import ./platforms.nix { inherit lib; }; + + riscv = bits: { + config = "riscv${bits}-unknown-linux-gnu"; + platform = platforms.riscv-multiplatform bits; + }; +in rec { # @@ -92,10 +99,6 @@ rec { musl64 = { config = "x86_64-unknown-linux-musl"; }; musl32 = { config = "i686-unknown-linux-musl"; }; - riscv = bits: { - config = "riscv${bits}-unknown-linux-gnu"; - platform = platforms.riscv-multiplatform bits; - }; riscv64 = riscv "64"; riscv32 = riscv "32"; |