-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
editline: init at 1.15.3 #41950
editline: init at 1.15.3 #41950
Conversation
@GrahamcOfBorg build editline |
Success on x86_64-darwin (full log) Attempted: editline Partial log (click to expand)
|
Looks good to me.
We do not need the static library. |
Success on x86_64-linux (full log) Attempted: editline Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: editline Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: editline Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: editline Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: editline Partial log (click to expand)
|
I was trying to remember why I included
Not sure if that's how we'd want to use it, or how it's used in general today (since we don't seem to have users in-tree unless they bundle it). I'll look into multiple outputs... |
Hmm, not sure how to best do what you're asking. On the other hand the output is only ~160K total so doesn't seem in dire need of being split? |
The static lib on my x64_64-linux box is 50K. Don't think it's worth splitting. |
This is already in Nixpkgs (https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/libedit/default.nix) as libedit. If the upstream src has changed we should reuse that expression (not sure if @troglobit is a better maintainer than @JessThrysoee but I don't want to have both of them in Nixpkgs). Eventually I want to replace it with netbsd.libedit but haven't gotten that far. So if we prefer this version, can we remove libedit as well? |
@matthewbauer editline is not the same as libedit. Maybe once they shared a common ancestry but Jess' version stems from NetBSD and "mine" from the original usenet posting by @richsalz, which I picked up from Minix 2, back in the day. |
Ah... okay I misunderstood. Avoiding libtermcap is definitely a nice feature & probably would make it easier to become a part of Nix. @troglobit Are they roughly compatible though? For instance could we use editline for things that traditionally require libedit like OpenSSH & LLVM tools? |
Nice to see old classics still around :) Editline is here: https://github.com/richsalz/editline Biggest limitation is no linewrap, really only handles 80char lines. But it's like 17K object. |
@matthewbauer Nope, it's really limited, sorry. It has been extended here and there over time since @richsalz original (cheers mate :), by Minix, then Debian, and then I picked it up and merged patches I'd found spread all over the Internet. If you want something complete then there's FSF Readline, or Jess' libedit, but if you want something really small and standalone this is it. |
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.
Okay looks good! The name could definitely be confusing because of libedit & such but this happens with pretty much any Unixy library that has tons of versions between Linux, Darwin, NetBSD, forks, etc.
Not sure why I didn't submit this earlier!
Anyway, generally useful library and may be used in Nix one day.
NixOS/nix#2228
Distinct from the libedit package, apparently :).
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)