Skip to content

lua5_5: init at 5.5.0 - #473564

Merged
teto merged 1 commit into
NixOS:stagingfrom
mrcjkb:mj/push-mskvtnrqmtyz
Jan 6, 2026
Merged

teto merged 1 commit into
NixOS:stagingfrom
mrcjkb:mj/push-mskvtnrqmtyz

Conversation

@mrcjkb

@mrcjkb mrcjkb commented Dec 23, 2025 •

Copy link
Copy Markdown
Member

Adds a package for Lua 5.5.

I expect none of the lua55Packages to build, as luarocks doesn't yet support Lua 5.5.
Maybe we should remove the alias for now and add it later, so people can start using Lua 5.5? (cc @teto)

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@mrcjkb
mrcjkb marked this pull request as draft December 23, 2025 12:31
@mrcjkb
mrcjkb requested a review from a team December 23, 2025 12:31
if (stdenv.hostPlatform.isLinux && lib.versionOlder self.luaversion "5.4") then
"linux"
else if (stdenv.hostPlatform.isLinux && lib.versionAtLeast self.luaversion "5.4") then
else if (stdenv.hostPlatform.isLinux && self.luaversion == "5.4") then

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: lua 5.5 doesn't have a linux-readline target.

Comment thread pkgs/top-level/all-packages.nix Resolved
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 6.topic: lua Lua is a powerful, efficient, lightweight, embeddable scripting language. labels Dec 23, 2025
@teto

teto commented Dec 23, 2025

Copy link
Copy Markdown
Member

My initial reaction would be to wait for luarocks support before merging this ? I doubt anyone is in a hurry to use lua5.5, and they can use this branch if they need to.

github-actions[bot]

This comment was marked as resolved.

@mrcjkb
mrcjkb changed the base branch from master to staging January 2, 2026 18:59
@nixpkgs-ci nixpkgs-ci Bot closed this Jan 2, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this Jan 2, 2026
@github-actions
github-actions Bot dismissed their stale review January 2, 2026 18:59

All good now, thank you!

@mrcjkb

This comment was marked as outdated.

@mrcjkb
mrcjkb force-pushed the mj/push-mskvtnrqmtyz branch from cd4a91f to 0515934 Compare January 2, 2026 19:24
@mrcjkb

This comment was marked as outdated.

@mrcjkb
mrcjkb marked this pull request as ready for review January 2, 2026 19:26
@nixpkgs-ci nixpkgs-ci Bot added the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Jan 2, 2026

@7c6f434c 7c6f434c left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff looks reasonable to me

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Jan 4, 2026
@teto

teto commented Jan 6, 2026

Copy link
Copy Markdown
Member

most of the lua packages get marked as broken with 5.5 but at least we get the interpreter ty

@teto
teto added this pull request to the merge queue Jan 6, 2026
Merged via the queue into NixOS:staging with commit 6cea214 Jan 6, 2026
@mrcjkb
mrcjkb deleted the mj/push-mskvtnrqmtyz branch January 7, 2026 04:18
@trofi

trofi commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

Would it be reasonable to extend golden_LUA_PATHS with 5.5 support? Otherwise lua5_5.tests fails the eval in staging as:

$ nix build --no-link -f. lua5_5.tests
error:
       … while calling the 'derivationStrict' builtin
         at «nix-internal»/derivation-internal.nix:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'test-lua-5.5.0-check-default-lua-path'
         whose name attribute is located at pkgs/stdenv/generic/make-derivation.nix:541:13

       … while evaluating attribute 'buildCommand' of derivation 'test-lua-5.5.0-check-default-lua-path'
         at pkgs/build-support/trivial-builders/default.nix:80:17:
           79|         enableParallelBuilding = true;
           80|         inherit buildCommand name;
             |                 ^
           81|         passAsFile = [ "buildCommand" ] ++ (derivationArgs.passAsFile or [ ]);

       error: attribute '"5.5"' missing
       at pkgs/development/interpreters/lua-5/tests/default.nix:65:25:
           64|     let
           65|       golden_LUA_PATH = golden_LUA_PATHS.${lib.versions.majorMinor lua.version};
             |                         ^
           66|     in
       Did you mean one of 5.1, 5.2, 5.3, 5.4 or 2.0?

@mrcjkb mrcjkb mentioned this pull request Jan 7, 2026
3 of 14 tasks
@mrcjkb mrcjkb mentioned this pull request Jan 27, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: lua Lua is a powerful, efficient, lightweight, embeddable scripting language. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants