emacs: disable native compilation when cross-compiling

Also unmarks Emacs as broken in this build configuration.
This commit is contained in:
Marco Rebhan
2023-09-12 02:44:45 +00:00
committed by Anderson Torres
parent 597ed0c552
commit 90fba39526
+2 -2
View File
@@ -65,7 +65,7 @@
, withNativeCompilation ?
if nativeComp != null
then lib.warn "nativeComp option is deprecated and will be removed; use withNativeCompilation instead" nativeComp
else true
else stdenv.buildPlatform.canExecute stdenv.hostPlatform
, noGui ? false
, srcRepo ? true
, withAcl ? false
@@ -405,6 +405,6 @@ mkDerivation (finalAttrs: {
};
meta = meta // {
broken = !(stdenv.buildPlatform.canExecute stdenv.hostPlatform);
broken = withNativeCompilation && !(stdenv.buildPlatform.canExecute stdenv.hostPlatform);
};
})