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
lua5_4: add readline support #107885
lua5_4: add readline support #107885
Conversation
Result of 2 packages built:
|
Result of 2 packages failed to build:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree it'd be good to build lua with readline support.
Rather than adding the define 'manually', I wonder if it'd be possible to specify linux-readline
as the target platform for 5.4?
This is not a new failure on this PR, though, right? |
fe0f256
to
045e17b
Compare
With @raboof 's help I was able to move the change into |
Also, during my testing I had no problems with setting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I'm not opposed to that 👍 (might be good to double-check it doesn't introduce unreproducability |
This is a semi-automatic executed nixpkgs-review. If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC. Result of 2 packages built:
|
I have pushed another commit, that enables it, after a |
Hmm, indeed - so much that with this change this PR should probably target |
f065d65
to
0c097b1
Compare
I have resolved the merge conflicts for this |
made #141785 but did not search for existing PRs the plat is still |
Motivation for this change
Introduce readline support for
lua5_4
. This makes the handling in the REPL nicer.The problem with this patch is, that it cannot be disabled. It would be better to put this into
interpreter.nix
so that thereadline
argument can be overriden/disabled. However, that would also affect previous lua versions, which seem to detect readline already.Also future Lua version probably will need this as well.
CC @raboof since you introduced
lua5_4
initially.Any thoughts ?
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)