diff options
author | oxalica <oxalicc@pm.me> | 2019-11-03 13:17:33 +0800 |
---|---|---|
committer | oxalica <oxalicc@pm.me> | 2019-11-03 22:10:06 +0800 |
commit | 955d032b47fbcbf8e366a3a8cdcea4ac5f7b63d7 (patch) | |
tree | 7c0e2b32b2f74976470a4c6e966f0f0ebbd1dfaf /lib/systems | |
parent | ea25d6bddc59216568bade9c4c564b1d1f54641f (diff) |
lib.systems: handle mips family properly
Diffstat (limited to 'lib/systems')
-rw-r--r-- | lib/systems/default.nix | 5 | ||||
-rw-r--r-- | lib/systems/parse.nix | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix index 0c0cdf1f11b19..ccb928eace786 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -79,6 +79,7 @@ rec { else if final.isAarch64 then "arm64" else if final.isx86_32 then "x86" else if final.isx86_64 then "ia64" + else if final.isMips then "mips" else final.parsed.cpu.name; qemuArch = @@ -90,6 +91,10 @@ rec { powerpcle = "ppc"; powerpc64 = "ppc64"; powerpc64le = "ppc64le"; + mips = "mips"; + mipsel = "mipsel"; + mips64 = "mips64"; + mips64el = "mips64el"; }.${final.parsed.cpu.name} or final.parsed.cpu.name; emulator = pkgs: let diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix index 5e12df32ffdd2..e923334a11bd2 100644 --- a/lib/systems/parse.nix +++ b/lib/systems/parse.nix @@ -327,6 +327,7 @@ rec { } ]; }; + gnuabi64 = { abi = "64"; }; musleabi = { float = "soft"; }; musleabihf = { float = "hard"; }; |