lua: add conditional to use linux-readline as the plat on 5.4+

since 5.4 linux plat no longer builds with readline support

Closes https://github.com/NixOS/nixpkgs/issues/141701
This commit is contained in:
Artturin 2021-10-15 20:38:37 +03:00 committed by Matthieu Coudron
parent 666b273318
commit 1d93a080a6

View file

@ -16,7 +16,8 @@ let
overrides = packageOverrides;
};
plat = if stdenv.isLinux then "linux"
plat = if (stdenv.isLinux && lib.versionOlder self.luaversion "5.4") then "linux"
else if (stdenv.isLinux && lib.versionAtLeast self.luaversion "5.4") then "linux-readline"
else if stdenv.isDarwin then "macosx"
else if stdenv.hostPlatform.isMinGW then "mingw"
else if stdenv.isFreeBSD then "freebsd"