stage: add Linux checks

This prevent us evaluation on macOS systems where pkgsMusl &
pkgsi686Linux is unsupported.
This commit is contained in:
Matthew Bauer 2018-07-05 17:32:54 -04:00
parent f795ed79d0
commit ad20a4a1c3

View File

@ -137,7 +137,7 @@ let
# All packages built with the Musl libc. This will override the
# default GNU libc on Linux systems. Non-Linux systems are not
# supported.
pkgsMusl = nixpkgsFun {
pkgsMusl = if stdenv.hostPlatform.isLinux then nixpkgsFun {
localSystem = {
parsed = stdenv.hostPlatform.parsed // {
abi = {
@ -147,11 +147,11 @@ let
}.${stdenv.hostPlatform.parsed.abi.name} or lib.systems.parse.abis.musl;
};
};
};
} else throw "Musl libc only supports Linux systems.";
# All packages built for i686 Linux.
# Used by wine, firefox with debugging version of Flash, ...
pkgsi686Linux = nixpkgsFun {
pkgsi686Linux = assert stdenv.hostPlatform.isLinux; nixpkgsFun {
localSystem = {
parsed = stdenv.hostPlatform.parsed // {
cpu = lib.systems.parse.cpuTypes.i686;