From b14214761b9bfa13cf0708b53d878b6e357c7cbd Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 4 Dec 2023 11:07:53 +0000 Subject: [PATCH] cross: get jbig2dec to build without binfmt/qemu --- overlays/cross.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/overlays/cross.nix b/overlays/cross.nix index d2698c1d..ba8397f2 100644 --- a/overlays/cross.nix +++ b/overlays/cross.nix @@ -1083,8 +1083,13 @@ in with final; { # }; # }; - # error: "configure: error: cannot run C compiled programs." - jbig2dec = needsBinfmt prev.jbig2dec; + jbig2dec = prev.jbig2dec.overrideAttrs (_: { + # adding configureFlags here fixes: "configure: error: cannot run C compiled programs." + # autogen needs the --host flag, i guess + preConfigure = '' + ./autogen.sh $configureFlags + ''; + }); # jellyfin-media-player = mvToBuildInputs # [ libsForQt5.wrapQtAppsHook ] # this shouldn't be: but otherwise we get mixed qtbase deps