Closed cstrahan closed 10 years ago
Interesting! I'm looking forward to see what will come of this. And thanks for introducing me to NixOS, never heard of it before :)
@p-e-w
Now that I have libmx and keybinder-3.0 in Nixpkgs, I've taken a stab at getting finalterm packaged too. It's pretty close, as you can see here: https://github.com/NixOS/nixpkgs/pull/3263
There are two remaining problems:
(.finalterm-wrapped:5362): GLib-CRITICAL **: g_io_channel_write_chars: assertion 'channel->is_writeable' failed
I'm not sure how to debug this further; could you give me a suggestion or two on how to troubleshoot this (or perhaps provide you with logs)?
@p-e-w Good news! I have finalterm working. The problem was a reference in data/org.gnome.finalterm.gschema.xml
to /bin/bash
, which is a path that doesn't exist on NixOS. I'll see if I can get someone to review and accept https://github.com/NixOS/nixpkgs/pull/3263 shortly.
Given that Nix is a cross-platform package manager, adding support for non-Linux hosts should be pretty straight forward (just need to make sure that all of the dependencies build on the other platforms). Being a big Mac user, OS X will probably be the next platform that I'll try to add support for.
Wow, I haven't heard of NixOS before, that is some really great stuff. Thank you for introducing us to that @cstrahan and thank you for all the effort to make this possible.
@cstrahan I have just seen that https://github.com/NixOS/nixpkgs/pull/3263 got merged. Does this mean this can be closed now and I could get this to work on my Mac as well as give NixOS a try?
@Globegitter Yep!
If you want to install finalterm from Nixpkgs, first install the nix package manager:
bash <(curl https://nixos.org/nix/install)
You can then use the one-click installer here: http://hydra.nixos.org/build/12558343
Or, if you want to be a neckbeard about it, grab the latest nixpkgs repo and install finalterm like so:
git clone https://github.com/NixOS/nixpkgs.git
cd nixpkgs
nix-env -f . -i -A finalterm
Cheers!
Has anyone tested this on Mac? Does this mean that https://github.com/p-e-w/finalterm/issues/92 is fixed?
@p-e-w Presently, the Xorg/X11 packages don't build on Mac, which of course holds back a couple prerequisites packages. I have an open PR that brings proper Xorg support to darwin, which I hope will get merged soon: https://github.com/NixOS/nixpkgs/pull/3101. Once that is merged, I'll see if I can get the other dependencies building on Darwin (which should be fairly trivial).
If you'd like, you can assign #92 to me, or perhaps create a Nix-specific issue and assign that. Either way, I'll make sure to keep everyone updated on my status.
(As an aside, a nice effect of all of this is that the package definition can also be used as a development environment on both Mac and Linux. Going from a pristine machine to a working development environment will be as easy as "nix-shell -p finalterm".)
@cstrahan I just saw that your open PR got merged. It would be really cool if you could get this to work on Mac as well.
@cstrahan Just tried it out on my Mac with the latest official release. I know this is going a little bit off-topic, but do I need the latest version straight from github to get anything to work? It tells me finalterm not found. Also I assume it is not quite ready for the Mac or is it? And my last question which you might not be able to answer and is completely off-topic anyway but are nix packages supposed to work with Fish? Seems I am getting an error when running the nix.sh Thanks for all the work you have done here btw.
@cstrahan Just tried again on my Mac and I am getting the following error:
If I set allowBroken to true it starts to install but throws errors towards the end. I can post the error-messages if it helps any.
Error output would be helpful. If you can post them as text instead of an image, that would be even better.
On October 19, 2014 10:22:45 AM EDT, Markus Padourek notifications@github.com wrote:
@cstrahan Just tried again on my Mac and I am getting the following error:
If I set allowBroken to true it starts to install but throws errors towards the end. I can post the error-messages if it helps any.
Reply to this email directly or view it on GitHub: https://github.com/p-e-w/finalterm/issues/269#issuecomment-59651273
Sent from my Android device with K-9 Mail. Please excuse my brevity.
This is the whole build output in a gist: https://gist.github.com/Globegitter/3a5bf3ccd3ad8ed213c5
@Globegitter I've added this to my personal Trello board. I'll see if I can look into it over the next couple days.
@cstrahan Awesome, thanks you!
@cstrahan Had any time yet to look into that by an chance?
This issue is just to track the support that I'm adding to NixOS/Nixpkgs, and any questions that might come up along the way. I've already submitted PRs for libmx and keybinder-3.0. Once those two are accepted, I'll submit another for Final Term.