Skip to content

NixOS cross-compile support #4963

@ambrop72

Description

@ambrop72

There is good support for cross-compilation in nixpkgs, but as far as I can tell, none in NixOS. This has a drastic impact on the usefulness of cross-compiling within Nix.

Ideally one would be able to:

  • Build a cross-compiled system configuration.
  • Deploy the system to a local storage medium (like nixos-install).
  • Deploy the system via nixops (basic ssh deployment).
  • Build a target-specific firmware image (where applicable).

I am prepared to work on this, but I would first like some guidence from people familiar with the NixOS code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    6.topic: cross-compilationBuilding packages on a different platform than they will be used on6.topic: documentationMeta-discussion about documentation and its workflow6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions