haskellPackages: support cross tests in checkPhase#468007
haskellPackages: support cross tests in checkPhase#468007alexfmpe wants to merge 1 commit intoNixOS:haskell-updatesfrom
Conversation
wolfgangwalther
left a comment
There was a problem hiding this comment.
Diff LGTM; but I would like to test it. It should be possible to test this with the right package as haskell.lib.doCheck pkgsCross.ghcjs.haskellPackages.xxx, right?
I couldn't find such a package, yet. Tests just seem to work regardless, at least for ghcjs. Still building the aarch64 cross compiler.
I was not able to reproduce a failing check phase when cross compiling either, so far. I'm probably looking at the wrong packages... |
Not in general. Setting See For my own testing I've been calling Maybe something can be done via |
Ah, I remember, yes. So we really need to fix that, eventually. But as-is, this PR is dead code, right? |
Yes |
|
Marked as draft, because merging dead code doesn't make sense. We will need other changes first, to actually support running the checkPhase for cross. |
Note this by itself doesn't change anything meaningful since
stdenv.mkDerivationdisablescheckPhaseunder cross (unlesscanExecuteis true).However it's straight-forward and doesn't cause any non-cross rebuilds so it seems worth merging standalone.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.