digga
digga copied to clipboard
Flakes check errors on unsupported system
I'm currently evaluating devos as my base template for my systems. I can nix build
all my systems now, but nix flake check
gives an error.
Expected Behavior
nix flake check
and everything that needs it, including deploy
should work.
Current Behavior
Error on checking:
error: Package ‘wlrobs-unstable-2021-05-13’ in /nix/store/626qldjl59n3cx00l2sd86734vdj99pk-source/pkgs/applications/video/obs-studio/plugins/wlrobs.nix:20 is not supported on ‘i686-linux’, refusing to evaluate.
a) To temporarily allow packages that are unsupported for this system, you can use an environment variable
for a single invocation of the nix tools.
$ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1
b) For `nixos-rebuild` you can set
{ nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.
c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
Interestingly enough, sometimes (e.g. after running bud update
) we get a different error:
error:
Failed assertions:
- Must use Linux for modules that require systemd: emacs, foot, gammastep
- The module wayland.windowManager.sway does not support your platform. It only supports
- aarch64-linux
- armv5tel-linux
- armv6l-linux
- armv7a-linux
- armv7l-linux
- i686-linux
- m68k-linux
- mipsel-linux
- powerpc64-linux
- powerpc64le-linux
- riscv32-linux
- riscv64-linux
- s390-linux
- s390x-linux
- x86_64-linux
Steps to Reproduce
- Checkout the branch https://github.com/pimeys/nixos/tree/devos
- Run
nix flake check
Your Environment
See the posted repo (devos branch) for details.
Having the same problem with nix flake check
when adding vscode
package.
error: Package ‘vscode-1.63.2’ in /nix/store/0gwjpjvi1gjma5d8cdpbxq8pxacnjs6r-source/pkgs/applications/editors/vscode/vscode.nix:45 is not supported on ‘i686-linux’, refusing to evaluate.
a) To temporarily allow packages that are unsupported for this system, you can use an environment variable
for a single invocation of the nix tools.
$ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1
b) For `nixos-rebuild` you can set
{ nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.
c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
This error almost always happens when you use IFD in some way. The easiest solution is to set supportedSystems
to not include those systems. Alternatively you could track down where IFD is being used and try to avoid it.
If you don't know what IFD is: https://nixos.wiki/wiki/Import_From_Derivation
I've been getting similar errors coming from bud
itself. See #476 for details.
@pimeys I know it's been quite a while since you opened this, but if you're interested/able, could you provide the full output of nix flake check --show-trace
? Without the trace, it's not possible to determine anything more about what might have caused the issue you ran into.
This should be fixed by 482d57131375dafe610480ada3b03351c16c0617. Another solution is to set supportedSytems
to a value which does not include "i686-linux".