luarocks: explicitly set 'configurePlatforms = [ ];'

Without the change build with `config.configurePlatformsByDefault = true`
fails as:

    Error: Unknown flag: --build=x86_64-unknown-linux-gnu
This commit is contained in:
Sergei Trofimovich 2022-06-23 09:02:19 +01:00
parent a2dbba380b
commit f59fcefd8d

View file

@ -26,6 +26,10 @@ stdenv.mkDerivation rec {
substituteInPlace src/luarocks/core/cfg.lua --subst-var-by 'darwinMinVersion' '${stdenv.targetPlatform.darwinMinVersion}'
'';
# Manually written ./configure does not support --build= or --host=:
# Error: Unknown flag: --build=x86_64-unknown-linux-gnu
configurePlatforms = [ ];
preConfigure = ''
lua -e "" || {
luajit -e "" && {