Skip to content

The NixOS SD image cannot be cross-compiled #106759

@Atemu

Description

@Atemu

Describe the bug
A clear and concise description of what the bug is.

Neither unstable, nor 20.09 can be cross compiled to armv7. I haven't tested aarch64 recently but, a few weeks back, it was just as broken.

Packages that don't cross compile anymore:

Additional context
Add any other context about the problem here.

Simplest configuration.nix you should be able to build:

{ lib, ... }:

{
  imports = [
    <nixpkgs/nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix>
  ];

  nixpkgs = {
    crossSystem = lib.systems.examples.armv7l-hf-multiplatform;
    localSystem = { system = "x86_64-linux"; };
  };
}

(Could this become a hydra job?)

Notify maintainers

@Ericson2314 @matthewbauer

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions