Add support for js-unknown-ghcjs

This adds enough logic to nixpkgs to support the `js-unknown-ghcjs` triple.
This commit is contained in:
Moritz Angermann
2019-09-02 01:27:05 -04:00
committed by John Ericson
parent 280795c163
commit 446f8c851d
5 changed files with 20 additions and 4 deletions
+2
View File
@@ -49,6 +49,8 @@ rec {
isEfi = map (family: { cpu.family = family; })
[ "x86" "arm" "aarch64" ];
isJavaScript = { cpu = cpuTypes.js; };
isGhcjs = { kernel = kernels.ghcjs; };
# Deprecated after 18.03
isArm = isAarch32;
};