From feb299eb2229b913428ac62a1244d1655014d69e Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 16 Jun 2023 00:46:32 +0000 Subject: [PATCH] cross: fix koreader build --- overlays/cross.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/overlays/cross.nix b/overlays/cross.nix index 29bfbbc3..f4c23a26 100644 --- a/overlays/cross.nix +++ b/overlays/cross.nix @@ -693,6 +693,14 @@ in { # GI_TYPELIB_PATH points to x86_64 types in the default build, only when using wrapGAppsHook4 wrapGAppsHook4 = final.wrapGAppsHook; }; + koreader = (prev.koreader.override { + # fixes runtime error: luajit: ./ffi/util.lua:757: attempt to call field 'pack' (a nil value) + inherit (emulated) luajit; + }).overrideAttrs (upstream: { + nativeBuildInputs = upstream.nativeBuildInputs ++ [ + final.autoPatchelfHook + ]; + }); libgweather = rmNativeBuildInputs [ final.glib ] (prev.libgweather.override { # alternative to emulating python3 is to specify it in `buildInputs` instead of `nativeBuildInputs` (upstream), # but presumably that's just a different way to emulate it.