@@ -967,6 +967,26 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
967967 '' ;
968968 buildPhase = ''
969969 runHook preBuild
970+ '' + lib . optionalString ( ! enableShared && targetPlatform . isAndroid && targetPlatform . isAarch64 )
971+ # This is rather idiotic, but we need to create the dynamic (.so) files because
972+ # hadrian expects them in the src/Rules/Rts.hs:160 or thereabout.
973+ ''
974+ mkdir -p _build/stage1/lib/aarch64-android-ghc-${ ghc-version } /
975+ touch _build/stage1/lib/aarch64-android-ghc-${ ghc-version } /libHSrts-1.0.2_thr_debug-ghc${ ghc-version } .so
976+ touch _build/stage1/lib/aarch64-android-ghc-${ ghc-version } /libHSrts-1.0.2_thr-ghc${ ghc-version } .so
977+ touch _build/stage1/lib/aarch64-android-ghc-${ ghc-version } /libHSrts-1.0.2_debug-ghc${ ghc-version } .so
978+ touch _build/stage1/lib/aarch64-android-ghc-${ ghc-version } /libHSrts-1.0.2-ghc${ ghc-version } .so
979+ '' + lib . optionalString ( ! enableShared && targetPlatform . isAndroid && targetPlatform . isAarch32 )
980+ # This is rather idiotic, but we need to create the dynamic (.so) files because
981+ # hadrian expects them in the src/Rules/Rts.hs:160 or thereabout.
982+ ''
983+ mkdir -p _build/stage1/lib/arm-android-ghc-${ ghc-version } /
984+ touch _build/stage1/lib/arm-android-ghc-${ ghc-version } /libHSrts-1.0.2_thr_debug-ghc${ ghc-version } .so
985+ touch _build/stage1/lib/arm-android-ghc-${ ghc-version } /libHSrts-1.0.2_thr-ghc${ ghc-version } .so
986+ touch _build/stage1/lib/arm-android-ghc-${ ghc-version } /libHSrts-1.0.2_debug-ghc${ ghc-version } .so
987+ touch _build/stage1/lib/arm-android-ghc-${ ghc-version } /libHSrts-1.0.2-ghc${ ghc-version } .so
988+ ''
989+ + ''
970990 ${ hadrian } /bin/hadrian ${ hadrianArgs }
971991 '' + lib . optionalString ( installStage1 && ! stdenv . targetPlatform . isGhcjs && builtins . compareVersions ghc-version "9.8" < 0 ) ''
972992 ${ hadrian } /bin/hadrian ${ hadrianArgs } stage1:lib:libiserv
0 commit comments