about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-06-25 09:38:16 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2018-06-25 17:13:02 -0400
commit69cad91b5c34b9ff474e973d39dd114cd91e6e82 (patch)
tree1e34abf5a15dcb487e36d8574f31868bd9a51a19 /pkgs
parent31eac6fd0088710c193efebb632f1c97ef3045a6 (diff)
downloadnixlib-69cad91b5c34b9ff474e973d39dd114cd91e6e82.tar
nixlib-69cad91b5c34b9ff474e973d39dd114cd91e6e82.tar.gz
nixlib-69cad91b5c34b9ff474e973d39dd114cd91e6e82.tar.bz2
nixlib-69cad91b5c34b9ff474e973d39dd114cd91e6e82.tar.lz
nixlib-69cad91b5c34b9ff474e973d39dd114cd91e6e82.tar.xz
nixlib-69cad91b5c34b9ff474e973d39dd114cd91e6e82.tar.zst
nixlib-69cad91b5c34b9ff474e973d39dd114cd91e6e82.zip
ghc843: don’t apply stripping in android
This breaks some library symbols apparently. ARM symbols must be
incorrectly stripped. Also some very weird issues with patchelf.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/compilers/ghc/8.4.3.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/compilers/ghc/8.4.3.nix b/pkgs/development/compilers/ghc/8.4.3.nix
index 702bf1cf9b96..0f5a43d57eda 100644
--- a/pkgs/development/compilers/ghc/8.4.3.nix
+++ b/pkgs/development/compilers/ghc/8.4.3.nix
@@ -75,7 +75,7 @@ let
   targetCC = builtins.head toolsForTarget;
 
 in
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (rec {
   version = "8.4.3";
   name = "${targetPrefix}ghc-${version}";
 
@@ -209,4 +209,8 @@ stdenv.mkDerivation rec {
     inherit (ghc.meta) license platforms;
   };
 
-}
+} // stdenv.lib.optionalAttrs targetPlatform.useAndroidPrebuilt {
+  dontStrip = true;
+  dontPatchELF = true;
+  noAuditTmpdir = true;
+})