File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 11{ stdenv , lib , haskellLib , buildPackages } :
2- let self = drv :
2+ let self = drvOrig :
33
44let
5+ # Work around problem running dynamicially linked Android executables with qemu.
6+ drv = drvOrig . override ( lib . optionalAttrs stdenv . hostPlatform . isAndroid { setupBuildFlags = [ "--ghc-option=-optl-static" ] ; } ) ;
7+
58 component = drv . config ;
69
710# This derivation can be used to execute test component.
@@ -65,4 +68,4 @@ in stdenv.mkDerivation ((
6568}
6669// lib . optionalAttrs ( drv ? LOCALE_ARCHIVE ) { inherit ( drv ) LOCALE_ARCHIVE ; }
6770) ;
68- in self
71+ in self
Original file line number Diff line number Diff line change 6868 # Also for GHC #15275
6969 ++ lib . optionals hostPlatform . isAarch64 [ "--gcc-option=-fPIC" ] ;
7070
71- # Wrapper to output a warning for Android
72- qemuNotSupportedWarning = writeShellScriptBin "warning-wrapper" ''
73- echo "Warning: Running Android apps on Linux using qemu is not supported." >&2
74- '' ;
75-
7671 # Wrapper for qemu testing
7772 qemuTestWrapper = writeShellScriptBin "test-wrapper" ''
7873 set -euo pipefail
7974 ${ qemu } /bin/qemu-${ qemuSuffix } $@*
8075 '' ;
8176
8277 # Choose the appropriate test wrapper
83- testWrapper = lib . optional isLinuxCross
84- ( if hostPlatform . isAndroid
85- then "${ qemuNotSupportedWarning } /bin/warning-wrapper"
86- else "${ qemuTestWrapper } /bin/test-wrapper" ) ;
78+ testWrapper = lib . optional isLinuxCross "${ qemuTestWrapper } /bin/test-wrapper" ;
8779
8880 enableShared = lib . mkDefault ( ! isLinuxCross ) ;
8981
You can’t perform that action at this time.
0 commit comments