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:
parent
666b273318
commit
1d93a080a6
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue