Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luarocks: 3.9.1 -> 3.9.2 #288130

Merged
merged 1 commit into from
Feb 12, 2024
Merged

luarocks: 3.9.1 -> 3.9.2 #288130

merged 1 commit into from
Feb 12, 2024

Conversation

jtbx
Copy link
Member

@jtbx jtbx commented Feb 11, 2024

Description of changes

Changes: https://github.com/luarocks/luarocks/blob/master/CHANGELOG.md#whats-new-in-luarocks-392
Diff: luarocks/luarocks@v3.9.1...v3.9.2

Also migrated to pkgs/by-name.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@kirillrdy
Copy link
Member

as per pkgs/by-name check

pkgs.luarocks: This attribute is manually defined (most likely in pkgs/top-level/all-packages.nix), which is only allowed if the definition is of the form pkgs.callPackage pkgs/by-name/lu/luarocks/package.nix { ... } with a non-empty second argument.

this is probably due to this in all-packages.nix

  luarocks = luaPackages.luarocks;
  luarocks-nix = luaPackages.luarocks-nix;

maybe @infinisil can suggest a solution ?

@AndersonTorres
Copy link
Member

maybe @infinisil can suggest a solution ?

I believe it will require way more advanced features not yet present on the current by-name structure.

@kirillrdy
Copy link
Member

if that's the case, then we should move files back

@infinisil
Copy link
Member

The error should be improved, but indeed pkgs/by-name can't yet be used for non-top-level packages.

@jtbx
Copy link
Member Author

jtbx commented Feb 11, 2024

Okay, in that case I'll move the luarocks package back where it was before


src = fetchFromGitHub {
owner = "luarocks";
repo = "luarocks";
rev = "v${finalAttrs.version}";
sha256 = "sha256-G6HDap3pspeQtGDBq+ukN7kftDaT/CozMVdYM60F6HI=";
hash = "sha256-D5jH7QuPayDNskIhiPeqKzI9m33MjRjQ8ReghFIUlPo=";
};

patches = [
./darwin-3.7.0.patch
Copy link
Member

Choose a reason for hiding this comment

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

What does this patch do?

@delroth delroth added 12.approvals: 2 This PR was reviewed and approved by two reputable people 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package labels Feb 11, 2024
@7c6f434c 7c6f434c merged commit 9f24d30 into NixOS:staging Feb 12, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 501+ 10.rebuild-darwin: 1001-2500 10.rebuild-linux: 501+ 10.rebuild-linux: 2501-5000 12.approvals: 2 This PR was reviewed and approved by two reputable people 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants