Skip to content

Haskell: support cross-compiling TemplateHaskell with GHC via -fexternal-interpreter #248979

@sternenseemann

Description

@sternenseemann

TemplateHaskell notoriously requires running host code even when cross-compiling. This is realised by telling GHC about a so called iserv via the -fexternal-interpreter flag. This iserv can either run on a physical or virtual machine matching the host platform or run via qemu (user) emulation. We should allow for the latter in a convenient way in nixpkgs. haskell.nix already supports this and relies on the nixpkgs cross infrastructure, so we can probably compare notes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancementAdd something new or improve an existing system.6.topic: cross-compilationBuilding packages on a different platform than they will be used on6.topic: haskellGeneral-purpose, statically typed, purely functional programming language

    Projects

    Status

    Enhancements

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions