From 79b6c119ee12dd30a33c6b2d878eec4215307fb2 Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 5 Mar 2023 00:17:27 +0000 Subject: [PATCH] cross compilation: emacs: don't emulate stdenv --- hosts/common/cross/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/hosts/common/cross/default.nix b/hosts/common/cross/default.nix index 1e88c203..4ba22a01 100644 --- a/hosts/common/cross/default.nix +++ b/hosts/common/cross/default.nix @@ -263,7 +263,7 @@ in # nixpkgs hdf5 is at commit 3e847e003632bdd5fdc189ccbffe25ad2661e16f # hdf5 # configure: error: cannot run test program while cross compiling # http2 - libgccjit # "../../gcc-9.5.0/gcc/jit/jit-result.c:52:3: error: 'dlclose' was not declared in this scope" (needed by emacs!) + # libgccjit # "../../gcc-9.5.0/gcc/jit/jit-result.c:52:3: error: 'dlclose' was not declared in this scope" (needed by emacs!) # libsForQt5 # qtbase # make: g++: No such file or directory # perlInterpreters # perl5.36.0-Module-Build perl5.36.0-Test-utf8 (see tracking issues ^) # qgnomeplatform @@ -421,9 +421,14 @@ in mesonFlags = lib.remove "-Dvapi=false" upstream.mesonFlags; }); + # emacs = prev.emacs.override { + # # fixes "configure: error: cannot run test program while cross compiling" + # inherit (emulated) stdenv; + # }; emacs = prev.emacs.override { - # fixes "configure: error: cannot run test program while cross compiling" - inherit (emulated) stdenv; + nativeComp = false; + # TODO: we can specify 'action-if-cross-compiling' to actually invoke the test programs: + # }; flatpak = prev.flatpak.overrideAttrs (upstream: {