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

lua*Packages improvements #60614

Merged
merged 5 commits into from May 12, 2019
Merged

lua*Packages improvements #60614

merged 5 commits into from May 12, 2019

Conversation

vcunat
Copy link
Member

@vcunat vcunat commented May 1, 2019

Motivation for this change

I put everything inside a single PR, because there are multiple dependencies among the commits. Feel free to review just parts. I can split this later, in case some part is contentious.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • N/A Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of some pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • N/A Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
    Some packages newly have runtime dependency on lua interpreter or other lua packages it depends on, but that's probably not considered a regression. Also, the luarocks builder additionally includes some docs, but that's not big.
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md, I think.

vcunat added 5 commits May 1, 2019 10:32
The generator wanted to do various changes in other packages as well,
but I didn't commit those.
Test case that should execute without an error:
echo "require('compat53')" | env NIX_PATH=nixpkgs=$(pwd) \
  nix-shell --pure -p lua -p lua.pkgs.compat53 --run lua
Test case that should execute without an error:
echo "require('ssl.https')" | env NIX_PATH=nixpkgs=$(pwd) \
      nix-shell --pure -p lua -p lua.pkgs.luasec --run lua
One bugfix patch is included - merged upstream but not released yet.
knot-resolver wrapper would need to add binaryheap explicitly,
so it's migrated to the automatic LUA path discovery instead.
@vcunat
Copy link
Member Author

vcunat commented May 1, 2019

@teto might be interested.

@FRidh FRidh requested a review from teto May 1, 2019 09:44
@teto
Copy link
Member

teto commented May 1, 2019

@GrahamcOfBorg build luaPackages.luacyrussasl luaPackages.binaryheap luaPackages.http

@teto
Copy link
Member

teto commented May 1, 2019

Looks fine to me. seems like luacyrussasl doesn't like darwin but hopefully luarocks-nix will translate the supported formats to nix soon so no need to delay this further. feel free to merge.

@c0bw3b c0bw3b merged commit 110fb94 into NixOS:master May 12, 2019
vcunat added a commit that referenced this pull request May 12, 2019
@vcunat vcunat deleted the p/lua-http branch May 12, 2019 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants