luajit: switch to 2.0.5 on aarch64 by default
commitb8726c346cdb12a1537c94a2f18f46dc822c8e1b
authorVladimír Čunát <vcunat@gmail.com>
dateFri 7 Jul 2017, 10:53 (9 years ago)
parente36b588
pkgs/development/interpreters/luajit/default.nix+7−2
@@ -1,7 +1,12 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, hostPlatform }:
22rec {
33
4− luajit = luajit_2_1;
4+ luajit =
5+ # Compatibility problems with lightuserdata pointers; see:
6+ # https://github.com/LuaJIT/LuaJIT/blob/v2.1/doc/status.html#L101
7+ if hostPlatform.is64bit && (hostPlatform.isArm || hostPlatform.isSunOS)
8+ then luajit_2_0
9+ else luajit_2_1;
510
611 luajit_2_0 = generic {
712 version = "2.0.5";