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

Fix devshell on i686 #533

Merged
merged 1 commit into from
Jun 27, 2023
Merged

Fix devshell on i686 #533

merged 1 commit into from
Jun 27, 2023

Conversation

Hoverbear
Copy link
Contributor

Description

Resolves this issue:

❯ nix flake check -L
warning: Git tree '/home/ana/git/determinatesystems/harmonic' is dirty
error:
       … while checking flake output 'devShells'

         at /nix/store/3nayh6jyn7ssyr8ijx8shz7sy9kdb5jz-source/flake.nix:123:7:

          122|
          123|       devShells = forAllSystems ({ system, pkgs, ... }:
             |       ^
          124|         let

       … while checking the derivation 'devShells.i686-linux.default'

         at /nix/store/3nayh6jyn7ssyr8ijx8shz7sy9kdb5jz-source/flake.nix:130:11:

          129|         {
          130|           default = pkgs.mkShell {
             |           ^
          131|             name = "nix-install-shell";

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: Package ‘criu-3.17.1’ in /nix/store/hmdjvalbmsb9x9wir7xq8y623abjl55w-source/pkgs/os-specific/linux/criu/default.nix:116 is not available on the requested hostPlatform:
         hostPlatform.config = "i686-unknown-linux-gnu"
         package.meta.platforms = [
           "x86_64-linux"
           "aarch64-linux"
           "armv7l-linux"
         ]
         package.meta.badPlatforms = [ ]
       , 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

        Note: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+
        (Flake) command, `--impure` must be passed in order to read this
        environment variable.

       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.
Checklist
  • Formatted with cargo fmt
  • Built with nix build
  • Ran flake checks with nix flake check
  • Added or updated relevant tests (leave unchecked if not applicable)
  • Added or updated relevant documentation (leave unchecked if not applicable)
  • Linked to related issues (leave unchecked if not applicable)
Validating with install.determinate.systems

If a maintainer has added the upload to s3 label to this PR, it will become available for installation via install.determinate.systems:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix/pr/$PR_NUMBER | sh -s -- install

@Hoverbear Hoverbear requested a review from cole-h June 26, 2023 23:08
@Hoverbear Hoverbear marked this pull request as ready for review June 26, 2023 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants