-
Notifications
You must be signed in to change notification settings - Fork 21
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
Can't eval aarch64-linux package on x86_64-linux #58
Comments
This is probably because |
It would be appreciated if you could try #56 on helix's flake, and in your configuration. It should hopefully "just work". |
I can't dig in a ton right now, so I may have made a mistake, but I tried this naively:
and got:
|
If you remove the |
I've just forked for now, to minimize any weird flake stuff going on: But when I eval one of my toplevels, I get Just to check, this is still what I'm using to pull in helix: |
I've bumped to "github:yusdacra/nix-cargo-integration/5c4e36760a232feb572fb5f9b46e8d262dbec42e" and same result. |
Ugh, infinite recursion errors, that is really annoying. I'll take a look at it soon and try to fix it. |
It seems like the issue has to do with either how helix is loading source via If you pull the helix commit from my fork you can just build the pkg output directly to get the more useful error. I'm not really sure why it manifests as a stack overflow when its used as part of my system. |
I also get a stack overflow error, on your fork. I'm not really sure where this could happen, since there are so many layers, but I'll try looking at Note: completely clearing the flake and just using a plain |
I can reproduce the stack overflow with a simple dream2nix flake on helix, so it looks like the bug is in dream2nix most likely, with my builder implementation (or perhaps translator). The problem seems to happen with a I made an issue on dream2nix here nix-community/dream2nix#86. |
Thanks for the update and the time you're investing in this area, I'm excited to switch some other Rust stuff to it. |
I've spent the last 2 weeks working on improving Rust builders over on {
description = "A post-modern text editor.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
nixCargoIntegration = {
url = "github:yusdacra/nix-cargo-integration/dream2nix-only";
inputs.nixpkgs.follows = "nixpkgs";
inputs.rustOverlay.follows = "rust-overlay";
};
helix = {
url = "https://github.com/helix-editor/helix.git";
type = "git";
submodules = true;
flake = false;
};
};
outputs =
inputs @ {
nixCargoIntegration,
helix,
...
}:
nixCargoIntegration.lib.makeOutputs {
root = ./.;
renameOutputs = { "helix-term" = "helix"; };
# Set default app to hx (binary is from helix-term release build)
# Set default package to helix-term release build
defaultOutputs = {
app = "hx";
package = "helix";
};
overrides = {
crateOverrides = common: _: {
helix-term = prev: {
buildInputs = (prev.buildInputs or []) ++ [common.cCompiler.cc.lib];
nativeBuildInputs = (prev.nativeBuildInputs or []) ++ [common.pkgs.makeWrapper];
preConfigure = ''
${prev.preConfigure}
rm -r helix-syntax/languages
ln -s ${helix}/helix-syntax/languages helix-syntax/languages
ln -s "$PWD/helix-syntax/languages" languages
mkdir -p runtime/grammars
'';
postInstall = ''
${prev.postInstall}
mkdir -p $out/lib
cp -r runtime $out/lib
wrapProgram "$out/bin/hx" --set HELIX_RUNTIME "$out/lib/runtime"
'';
};
};
};
};
} Note that you will probably need to wait a long time for all the submodules to be fetched, |
Closing this since it is done. |
Since adding
helix
's flake to my nixcfg, I'm no longer able to evaluate my aarch64 systems on my x86_64 boxes. This is pretty painful since I rely on evaluating on my main CI machine and then remote building the derivations and copying outputs back.I'm not sure though, if this is because of a specific Rust dep that is triggering this, or if its an overall symptom of helix's use of
nix-cargo-integration
.Any tips?
The text was updated successfully, but these errors were encountered: