-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Running nix flake show
fails to evaluate on x86_64-linux
#1154
Comments
Unfortunately the problem is now even worse, because an nixvim update introduced an import from derivation case due to our handling of the documentation generation. See NixOS/nix#3920 |
Having some similar issue on M1 MacBook
|
Does this issue just amounts to us using IFD (import from derivation) in our flake or is it another issue (thus more concerning) ? |
Not 100% sure, I can't reproduce |
Can we workaround the IFD issue by putting the patched nixpkgs derivation into a dedicated flake and importing that as an input in the main flake? I'm pretty sure we could have a separate flake within our repo, as long as it's in its own directory. |
From what I remember, there is not a single cause for IFD but several... One of them is the docs and the other one is the template. I could be wrong though, I have made those experiments a while ago. |
The issue breaks cross-platform deployments with
Is there any way to circumvent the issue until a more long-term fix is created? |
#1637 removed the main IFD we were blocked on, so this is no longer a "won't fix". There's one* IFD left in our wrapper checks: nixvim/flake-modules/wrappers.nix Lines 31 to 55 in 36f2e51
Removing that These tests were introduced in #901, #907, & #909. * ok, there's three. But they're grouped together and basically the same thing... |
Removing the check does fix the
Should I open a separate issue for this? |
@notthebee yes please. It's better if this issue is focused on one bug rather than two 👍 |
…efinition If we access the asserts outside the derivation arguments, and inside the code that _creates_ the derivation then we observe IFD in `nix flake show`. This commit fixes it, and allows `nix flake show` to work! Fixes nix-community#1154
Evaluating flake outputs fails on
x86_64-linux
. Seems to want to aaarch64-darwin
system.nix flake show
should successfully evaluate independent of system type.Seems something is referencing
perSystem.aarch64-darwin.packages
when evaluating onx86_64-linux
.The text was updated successfully, but these errors were encountered: