Open mkhl opened 2 years ago
For context
yarn.nix is being built at https://github.com/NixOS/nixpkgs/blob/764670261a559e0e2e89dcce487fb9bd3ae19f9e/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix#L44
Duplicate of https://github.com/NixOS/nix/issues/4265
simpler reproducer:
{
outputs = { self, nixpkgs }: {
checks = nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"] (system:
with nixpkgs.legacyPackages.${system}; {
hello = import (writeText "hi" "hi");
});
};
}
This is due to IFD (import from derivation) being required to perform the evaluation. In some sense the error message is correct: you are unable to be certain that the flake evaluates on a aarch64-linux without performing a build on that architecture. This is a reason IFD can cause problems and should often be avoided. If you had an aarch64-linux builder in your builders
option, then a build would be dispatched there and the result used to continue evaluation.
i see, thank you
although i don't understand why the same issue isn't present for packages, just for checks
Describe the bug
nix flake check
fails for yarn packagesSteps To Reproduce
Steps to reproduce the behavior:
Expected behavior
the checks succeed
Screenshots
Additional context
none
Notify maintainers
maybe @jtojnar?
Metadata