-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Open
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: cross-compilationBuilding packages on a different platform than they will be used onBuilding packages on a different platform than they will be used on6.topic: haskellGeneral-purpose, statically typed, purely functional programming languageGeneral-purpose, statically typed, purely functional programming language6.topic: windowsRunning, or buiding, packages on WindowsRunning, or buiding, packages on Windows
Description
As some may already know, I'm working on cross compiling Haskell to Windows using nix.
I'll try to keep track of the issues I run into, and then add the relevant PRs as I manage to
clean them up.
Minor
- mingw64 is too old for GHC. GHC requires mingw-w64 >= 5
- cctools asserts
targetPlatform.isDarwin, which fails. - ghc binary expressions assert
stdenv.targetPlatform == stdenv.hostPlatform, which fails during validation. - The
buildMKin the ghc expressions is wrong and needs to also include the relevant$flavour.mk - The generic builder uses
hsc2hsfrom thenativeGhc, but should use$targetPrefix-hsc2hs. -
haskellSetupDependsshould come from thebuildPackagespackage set as they are compiled and run by the native compiler.
Major
-
packageOverridesandbuildPackagesdon't play nice together. Injecting a customghcviaconfigdoesn't work anymore, asbuildPackagesis fixed prior to the overrides being applied, andbuildPackagesdoesn't see any added packages from thepackageOverrides.
I might be missing some philosophical foundation with respect to nix here. Please bear with me and help me better understand.
/cc @Ericson2314
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: cross-compilationBuilding packages on a different platform than they will be used onBuilding packages on a different platform than they will be used on6.topic: haskellGeneral-purpose, statically typed, purely functional programming languageGeneral-purpose, statically typed, purely functional programming language6.topic: windowsRunning, or buiding, packages on WindowsRunning, or buiding, packages on Windows