3
0
Fork 0
forked from mirrors/nixpkgs

luajit: switch to 2.0.5 on aarch64 by default

This commit is contained in:
Vladimír Čunát 2017-07-07 10:53:07 +02:00
parent e36b588f93
commit b8726c346c
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -1,7 +1,12 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, hostPlatform }:
rec {
luajit = luajit_2_1;
luajit =
# Compatibility problems with lightuserdata pointers; see:
# https://github.com/LuaJIT/LuaJIT/blob/v2.1/doc/status.html#L101
if hostPlatform.is64bit && (hostPlatform.isArm || hostPlatform.isSunOS)
then luajit_2_0
else luajit_2_1;
luajit_2_0 = generic {
version = "2.0.5";