buildMozillaMach: elf-hack is only available on elf platforms

Followup to https://github.com/NixOS/nixpkgs/pull/365185
Probably darwin does not have the elf-hack options, so restrict it to
platforms which have Elf.

Change-Id: I2d585721ca08df57a7d2d55bb5a727d34b3fb216
This commit is contained in:
Yureka
2024-12-14 20:23:18 +01:00
parent 847c4e1028
commit 44c06fcc9f
@@ -28,7 +28,8 @@ let
# Specifying --(dis|en)able-elf-hack on a platform for which it's not implemented will give `--disable-elf-hack is not available in this configuration`
# This is declared here because it's used in the default value of elfhackSupport
isElfhackPlatform = stdenv: stdenv.hostPlatform.isi686 || stdenv.hostPlatform.isx86_64 || stdenv.hostPlatform.isAarch32 || stdenv.hostPlatform.isAarch64;
isElfhackPlatform = stdenv: stdenv.hostPlatform.isElf &&
(stdenv.hostPlatform.isi686 || stdenv.hostPlatform.isx86_64 || stdenv.hostPlatform.isAarch32 || stdenv.hostPlatform.isAarch64);
in
{ lib