-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
🐛Bug: Cannot run Kryptor binary on NixOS #71
Comments
Thanks for reporting this. Unfortunately, I know nothing about NixOS. I wonder if this is a .NET problem on NixOS as there was an issue before about that (#59).
What do you mean by this? That it executes? Which binary are you using or did you build from source?
Do other commands also produce that error, even stuff like |
Thanks for reading my issue. This probably is a .NET problem, but I compiled binary from source and the problem still persisted. Won't say much about this as I don't know anything about C# or .NET like you with NixOS.
Basically, running any command that doesn't require any cryptography works such as |
Thanks for getting back to me. It sounds like it might be libsodium then, the cryptographic library. Not sure where to go from here. I'd be interested to know whether Cahir or Milva built from source work. The former uses Monocypher and the latter uses Monocypher and Bouncy Castle instead of libsodium. |
Sorry for getting back a bit late, had some problems with my computer.
Well, don't know about Cahir as it has no pre-built binary and I don't know how to compile it, but Milva's binary seems to work out of the box with no issues. So, the problem as you said may lie in libsodium. The libsodium library also seems to be available as a nixpkg, so there should be a way to get it working on NixOS (probably using flakes). |
Sorry, it's still in development and haven't written up build instructions yet.
Cool, thanks for testing that out.
Let me know if you get it working. |
I should've said actually that only BLAKE2b uses Monocypher on Milva (e.g., |
Just tried the |
Created a package for Kryptor in nixpkgs: NixOS/nixpkgs#326334 |
Guess that fixes it then, I will close this issue once it gets merged. |
The package is now merged. @samuel-lucas6 maybe you want to add it to the available package managers. If you need any help with nix I'm here :) |
This is because it was merged on the master branch of the repository, it'll take two or three days to get into nixos-unstable (the rolling release), here is the link of the search in the unstable channel. For the stable release it'll have to wait until the next one, as nixos doesn't add new packages in a stable channel. I'll ping you here when it arrives in unstable. |
@samuel-lucas6 kryptor is now in the unstable branch! |
@arthsmn Thanks for letting me know. I've updated the website and credited you in the Acknowledgements. |
Thanks! |
Description
After trying to run the binary with all the dynamic libraries (this being libz and libstdc++), the program works fine but when trying to generate keys or verify a signature, it gives the error "Illegal Instruction (core dumped)". The missing dynamic libraries was found by running
ldd kryptor
in the directory of the binary.Steps to reproduce
programs.nix-ld.enable = true
programs.nix-ld.libraries = with pkgs; [ libz libstdcxx5 icu ]
./kryptor -g
and select any of the key pair type.Expected behavior
Successfully generate a key pair.
Platform info
The text was updated successfully, but these errors were encountered: