lib.systems: handle mips family properly
commit955d032b47fbcbf8e366a3a8cdcea4ac5f7b63d7
authoroxalica <oxalicc@pm.me>
dateSun 3 Nov 2019, 13:17 (7 years ago)
parentea25d6b
lib/systems/default.nix+5
@@ -79,6 +79,7 @@ rec {
7979 else if final.isAarch64 then "arm64"
8080 else if final.isx86_32 then "x86"
8181 else if final.isx86_64 then "ia64"
82+ else if final.isMips then "mips"
8283 else final.parsed.cpu.name;
8384
8485 qemuArch =
@@ -90,6 +91,10 @@ rec {
9091 powerpcle = "ppc";
9192 powerpc64 = "ppc64";
9293 powerpc64le = "ppc64le";
94+ mips = "mips";
95+ mipsel = "mipsel";
96+ mips64 = "mips64";
97+ mips64el = "mips64el";
9398 }.${final.parsed.cpu.name} or final.parsed.cpu.name;
9499
95100 emulator = pkgs: let
lib/systems/parse.nix+1
@@ -327,6 +327,7 @@ rec {
327327 }
328328 ];
329329 };
330+ gnuabi64 = { abi = "64"; };
330331
331332 musleabi = { float = "soft"; };
332333 musleabihf = { float = "hard"; };