-
Notifications
You must be signed in to change notification settings - Fork 74
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
Add build instructions for nixos #306
Comments
I haven't used nixOS yet, so I don't know the details about the system much. At first glance it seems nixOS is restricting network access which is needed to download required dependencies. Are there any options to permit network access to the build process? |
I don't think internet can be accessed in the buildphase. But I have found some resources about using rust dependencies for building nix packages https://nixos.org/manual/nixpkgs/stable/#compiling-rust-applications-with-cargo. Although, I have no idea how rust and cargo work. |
Would it not be possible to package |
I suggest trying to package this in nixpkgs and some maintainer will guide you through the PR. |
@sifat06 see PR NixOS/nixpkgs#181871. Also, if you are open to it, would it be possible to add the |
I can upload a vendored tar archive containing every dependencies included, so no network access will be required. I will do so in the coming weekend. |
Thanks. But I think that might be a bit excessive since just having the Cargo.lock file would tell |
@hqurve Thanks for your help! With your instructions, it built successfully, but I can't seem to find any way to add it to system configuration. Can you also help with that? |
No problem. You should just have to add the Cargo.lock file and the default.nix file to some directory and reference it in your config file. For example, you can have the following directory structure
then just add it to systemPackages as such
|
Thanks. That's installs it as as an application. But I can't seem to find it as a input method either in gnome-settings or in output of |
Sorry, I just added the package and launched the executable without fully knowing how it should be integrated. But the nixos wiki has a good article on using ibus. In the end, I added the following entries to my config and rebooted.
Also, please add ... I'll make a pr to fix it |
Thanks! Now it works perfectly! But I forgot to mention that clicking on "OpenBangla Keyboard" icon does nothing. Instead, I had to type |
@hqurve Okay, I'll make sure |
@hqurve... fcitx5-openbangla-keyboard does not work in the new stable release of NixOS. However, ibus-engines.openbangla-keyboard works fine. |
My nix pkg overlay to built develop version of openbangla keyboard:
|
fcitx5 crash log:
|
I am not familiar with Nix environment, so I can't be helpful that much. @hqurve would be the most knowledgeable here. About the fcitx crash, can you report it to the fcitx's bug tracker? |
@mominul ... I will report the crash. But When I install fcitx5-m17n only without openbangla keyboard, it works just fine. I can add m17n languages like Probhat, National and even Bijoy Keyboard layouts. I encountered the same problem in Arch Linux with fcitx5 once. I was trying to install openbangla keyboard from AUR with openbangla-keyboard-git to work with fcitx5 and it crashed the system. But when I installed fcitx5-openbangla-git from AUR, it worked fine again. P.S. - In my practical experience, manually building openbangla keyboard from develop branch works completely fine in almost all other distros ( Debian, Fedora, Arch, Void etc). |
@hqurve @eclairevoyant as #364 has landed, can you update the Nix installation script? |
@mominul .... This error shows up now in Nix if built from develop version.
|
There are new crate updates in the |
@mominul ... I forked the develop branch and changed the files as advised from fcitx5 issue. Now i have built from my forked repo and atlast it is working!!! আমার আফসোস মিটলো শেষ পর্যন্ত! বি.দ্র. - আমি একটা কাস্টম লোগো ব্যবহার করেছি এবং এজন্যে আন্তরিকভাবে ক্ষমাপ্রার্থী। |
That's great 🎉 |
I was trying to install openbangla-keyboard in nixos 22.05. As there is no official package for nixos, I was trying to build it myself. I made a script that looks like this:
However, it wasn't successfully built.
It would be great if there were official build instructions for nixos.
The text was updated successfully, but these errors were encountered: