Skip to content
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

Flakes check errors on unsupported system #418

Open
pimeys opened this issue Jan 27, 2022 · 4 comments
Open

Flakes check errors on unsupported system #418

pimeys opened this issue Jan 27, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@pimeys
Copy link

pimeys commented Jan 27, 2022

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

  1. Checkout the branch https://github.com/pimeys/nixos/tree/devos
  2. Run nix flake check

Your Environment

See the posted repo (devos branch) for details.

@pimeys pimeys added the bug Something isn't working label Jan 27, 2022
@ghost
Copy link

ghost commented Mar 29, 2022

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)

@Pacman99
Copy link
Member

Pacman99 commented Apr 1, 2022

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

@montchr
Copy link
Collaborator

montchr commented Jul 9, 2022

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.

@Lord-Valen
Copy link
Contributor

This should be fixed by 482d571. Another solution is to set supportedSytems to a value which does not include "i686-linux".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants