koreader-from-src: fix non-cross build
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user