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

Let folks try xi-editor (xi-core) and various front-ends. #48593

Closed
wants to merge 8 commits into from

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Oct 16, 2018

They're all WIP (as in "upstream is still working towards a release") but
having them packaged makes it easier to get started and see what it's about.

  • 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
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • 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)
  • Fits CONTRIBUTING.md.

cc NixOS#32713

Based on initial packaging work by @ayyjayess.
Not sure if there's a place to put this that'll be automagically
discovered when needed, so skip for now.
@dtzWill
Copy link
Member Author

dtzWill commented Oct 16, 2018

Build failure seems unrelated, at least I sure hope so! Snippet:

undefined variable 'xenPackages' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-0-gleber.ewr1.nix.ci/pkgs/top-level/all-packages.nix:19705:9

EDIT: Nope I somehow dropped xenPackages when putting this together :3 😇

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: kod, xi-gtk

Partial log (click to expand)


error: Could not compile `xi-core`.

To learn more, run the command again with --verbose.
builder for '/nix/store/ikx36i4ma061d936bk9ir4d7jg32k165-xi-core-2018-10-16.drv' failed with exit code 101
cannot build derivation '/nix/store/v3m158kkhp4fal4c5kb2505p0ygz99fr-wrapXiFrontend.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/vrkdwqpd6k5mmkyi2ydpncrkf2iaqgdh-wrapXiFrontend-hook.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/dii32vzn0hnjilazmx4kw7mhy3iaq993-kod-unstable-2018-10-16.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/bs9b8vqdcxgr578f2ibi9v735zvmybwx-xi-gtk-2018-07-30.drv': 1 dependencies couldn't be built
error: build of '/nix/store/bs9b8vqdcxgr578f2ibi9v735zvmybwx-xi-gtk-2018-07-30.drv', '/nix/store/dii32vzn0hnjilazmx4kw7mhy3iaq993-kod-unstable-2018-10-16.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: kod, xi-gtk

Partial log (click to expand)

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `xi-rope`.
warning: build failed, waiting for other jobs to finish...
error: build failed
builder for '/nix/store/rb94sjl08dq031qp08a7r7hy81b6655x-xi-core-2018-10-16.drv' failed with exit code 101
cannot build derivation '/nix/store/0qci66rgb2800gs3y6lah8i940v5mxsa-wrapXiFrontend.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/hh8lzl3740gkr1nlk87bldyidg6iypsz-wrapXiFrontend-hook.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/y58fkc4fg1sybd2qr5m09m4s677vq7jn-kod-unstable-2018-10-16.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/kpk6v2ngcnmw9arrqd1ycn3gy3fw3yvx-xi-gtk-2018-07-30.drv': 1 dependencies couldn't be built
error: build of '/nix/store/kpk6v2ngcnmw9arrqd1ycn3gy3fw3yvx-xi-gtk-2018-07-30.drv', '/nix/store/y58fkc4fg1sybd2qr5m09m4s677vq7jn-kod-unstable-2018-10-16.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: kod, xi-gtk

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/pxga88rmp9qkwgvv3bymhx4lc5agpcnc-xi-gtk-2018-07-30
shrinking /nix/store/pxga88rmp9qkwgvv3bymhx4lc5agpcnc-xi-gtk-2018-07-30/bin/.xi-gtk-wrapped
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/pxga88rmp9qkwgvv3bymhx4lc5agpcnc-xi-gtk-2018-07-30/bin
patching script interpreter paths in /nix/store/pxga88rmp9qkwgvv3bymhx4lc5agpcnc-xi-gtk-2018-07-30
checking for references to /build in /nix/store/pxga88rmp9qkwgvv3bymhx4lc5agpcnc-xi-gtk-2018-07-30...
Wrapping program /nix/store/pxga88rmp9qkwgvv3bymhx4lc5agpcnc-xi-gtk-2018-07-30/bin/xi-gtk
Wrapping program /nix/store/pxga88rmp9qkwgvv3bymhx4lc5agpcnc-xi-gtk-2018-07-30/bin/.xi-gtk-wrapped
/nix/store/0bzchn97j85n8zav70mzf3bc5qmn7lj8-kod-unstable-2018-10-16-bin
/nix/store/pxga88rmp9qkwgvv3bymhx4lc5agpcnc-xi-gtk-2018-07-30

@teto
Copy link
Member

teto commented Oct 17, 2018

Just curious, any frontend you would recommand ? How do they fare compared to neovim ones ? (like www.onivim.io for instance)

@dtzWill
Copy link
Member Author

dtzWill commented Oct 17, 2018 via email

@Mic92
Copy link
Member

Mic92 commented Oct 17, 2018

It also seems to be more a research project then something people would actually use.

@Mic92
Copy link
Member

Mic92 commented Oct 17, 2018

I also tried to package oni, but it was still crashing on startup for me: https://github.com/Mic92/nur-packages/blob/master/pkgs/oni/default.nix

@teto
Copy link
Member

teto commented Oct 17, 2018

@Mic92 the overlay at #38231 (comment) works for me to install/run oni. The only problem is if you configure vim with nix, then oni won't get wrapped.
If it's that bad, maybe xi-frontends should go to NUR meanwhile.

$ mkdir -p ~/.config/xi/plugins
$ nix build nixpkgs.xi-core.syntect -o ~/.config/xi/plugins/xi

Creates 'xi-syntect' link, producing working syntax highlighting!
(so far only seen it working in kod using rust source, not sure)
@dtzWill
Copy link
Member Author

dtzWill commented Oct 17, 2018

Hmm, okay I'll move to my nur repo instead then ^_^.

@dtzWill dtzWill closed this Oct 17, 2018
@dtzWill
Copy link
Member Author

dtzWill commented Oct 17, 2018

(thanks for the good suggestion!)

dtzWill added a commit to dtzWill/nur-packages that referenced this pull request Oct 17, 2018
@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: kod, xi-core, xi-gtk

Partial log (click to expand)


error: Could not compile `xi-core`.

To learn more, run the command again with --verbose.
builder for '/nix/store/wblpc4pnjy01q58hm8s13jrajc746irs-xi-core-2018-10-16.drv' failed with exit code 101
cannot build derivation '/nix/store/rrjncw8s1zqq65i2vwsipn6vfmi3c4d3-wrapXiFrontend.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/x81yznvdnw39yad54fw5scbdla3pzmva-wrapXiFrontend-hook.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/9rms3z03mdnrhn7jqxp3mj1w80ddc24i-kod-unstable-2018-10-16.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/s1f27ay1r8gmskwnln497ny6696zp6mk-xi-gtk-2018-07-30.drv': 1 dependencies couldn't be built
error: build of '/nix/store/9rms3z03mdnrhn7jqxp3mj1w80ddc24i-kod-unstable-2018-10-16.drv', '/nix/store/s1f27ay1r8gmskwnln497ny6696zp6mk-xi-gtk-2018-07-30.drv', '/nix/store/wblpc4pnjy01q58hm8s13jrajc746irs-xi-core-2018-10-16.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: kod, xi-core, xi-gtk

Partial log (click to expand)

shrinking /nix/store/da6nfkwy2xavk069xgbyw22dy61nqh84-xi-gtk-2018-07-30/bin/.xi-gtk-wrapped
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/da6nfkwy2xavk069xgbyw22dy61nqh84-xi-gtk-2018-07-30/bin
patching script interpreter paths in /nix/store/da6nfkwy2xavk069xgbyw22dy61nqh84-xi-gtk-2018-07-30
checking for references to /build in /nix/store/da6nfkwy2xavk069xgbyw22dy61nqh84-xi-gtk-2018-07-30...
Wrapping program /nix/store/da6nfkwy2xavk069xgbyw22dy61nqh84-xi-gtk-2018-07-30/bin/xi-gtk
Wrapping program /nix/store/da6nfkwy2xavk069xgbyw22dy61nqh84-xi-gtk-2018-07-30/bin/.xi-gtk-wrapped
/nix/store/a5l6j917l8wym33da2i7lkbgg88qslzr-kod-unstable-2018-10-16-bin
/nix/store/3mac0cibk7iq842mzq2v9mj5anah43ia-xi-core-2018-10-16
/nix/store/da6nfkwy2xavk069xgbyw22dy61nqh84-xi-gtk-2018-07-30

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: kod, xi-core, xi-gtk

Partial log (click to expand)

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `xi-rope`.
warning: build failed, waiting for other jobs to finish...
error: build failed
builder for '/nix/store/82vp5n2bh2kbzjmnhj03y3fn078vwnnh-xi-core-2018-10-16.drv' failed with exit code 101
cannot build derivation '/nix/store/vy4s39wzan9gcssb0qigq6jggg46hlcs-wrapXiFrontend.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/1sc8qdwg4a6s7h9d6yfx9czr1fiyipyr-wrapXiFrontend-hook.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/w6dgbl5sappdal0sfgsqwcnbvdfyq8wx-kod-unstable-2018-10-16.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/ivayf9rs7sx6j5kpir86jfhxp2w0wh33-xi-gtk-2018-07-30.drv': 1 dependencies couldn't be built
error: build of '/nix/store/82vp5n2bh2kbzjmnhj03y3fn078vwnnh-xi-core-2018-10-16.drv', '/nix/store/ivayf9rs7sx6j5kpir86jfhxp2w0wh33-xi-gtk-2018-07-30.drv', '/nix/store/w6dgbl5sappdal0sfgsqwcnbvdfyq8wx-kod-unstable-2018-10-16.drv' failed

@dtzWill dtzWill mentioned this pull request Mar 18, 2019
10 tasks
@milahu
Copy link
Contributor

milahu commented Oct 4, 2022

xi-editor is a dead research project, see xi-editor retrospective

alternative: lapce editor

Hmm, okay I'll move to my nur repo instead then ^_^.

https://github.com/dtzWill/nur-packages/tree/master/pkgs/xi

updated versions in
https://github.com/milahu/nur-packages/tree/master/pkgs/xi

milahu pushed a commit to milahu/nur-packages that referenced this pull request Oct 4, 2022
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

5 participants