Open 347Online opened 1 month ago
Apologies for the delay, I have added the minimal reproduction example
I've tried to strip out everything unnecessary as best I can. The hardware configuration is included for completeness, however if attempting to reproduce, one would likely want to use the result of running nixos-generate-config for the target machine
Appologies for the delay looking at this. I'm not sure I'll be much help either, as I've not messed with cross-compile before.
/nix/store/4py05ai8azw14nlvfcc46r8930n4p4kv-neovim-0.10.1/bin/nvim-wrapper: error while loading shared libraries: libluajit-5.1.so.2: failed to map segment from shared object
appears to be an error in the nixpkgs pkgs.wrapNeovimUnstable
function, so potentially not a nixvim issue per-se.
I'm slightly confused, because your issue describes home-manager modules working but using a standalone package failing, however your MRE is using the nixos module not standalone.
Does that MRE still produce the issue?
We've had other users with cross-compile issues before, however AFAIK those were resolved when we removed all instances of IFD from nixvim.
@MattSturgeon Sorry for the delay!
To answer your question, yes, that MRE produces the issue. I'm not sure how I got it in my head that it was working via home-manager, it is broken in all cases, which makes more sense.
I've tried to update the issue to be a little clearer, let me know if there's anything I can shed more light on :)
N/A
unstable
unstable
Description
Nixvim fails to build when cross-compiling with qemu
The target system can run the configuration with nix run, however adding it to a package list fails
Log:
Minimal, Reproducible Example (MRE)
https://github.com/347Online/nixvim-qemu-mre