koreader-from-src: fix non-cross build

This commit is contained in:
2024-01-27 14:38:52 +00:00
parent 100ddad40e
commit a27a72646c

View File

@@ -158,7 +158,7 @@ stdenv.mkDerivation rec {
substituteInPlace ../fribidi/autogen.sh --replace 'which pkg-config' 'which $PKG_CONFIG'
substituteInPlace base/Makefile.defs --replace \
'LUAROCKS_BINARY=luarocks' 'LUAROCKS_BINARY=${stdenv.hostPlatform.emulator buildPackages} ${luajit52}/bin/lua ${luaEnv.pkgs.luarocks}/bin/.luarocks-wrapped'
'LUAROCKS_BINARY=luarocks' 'LUAROCKS_BINARY=${lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) (stdenv.hostPlatform.emulator buildPackages)} ${luajit52}/bin/lua ${luaEnv.pkgs.luarocks}/bin/.luarocks-wrapped'
'';
dontConfigure = true;