haskell.compiler.ghc865Binary: don't pass llvmPackages_6

We want to remove llvmPackages_6, but it is the only version GHC 8.6.5
supports. Luckily, we actually don't need LLVM in any case, since all
X86 architectures have native codegen for Darwin and Linux, as well as
POWER for Linux. Consequently, we can just pass `null` and add an extra
assert to make this more transparent to future tinkerers.

+3 -2
+1 -1
pkgs/development/compilers/ghc/8.6.5-binary.nix
··· 40 targetPackages.stdenv.cc.bintools 41 coreutils # for cat 42 ] 43 - ++ lib.optionals useLLVM [ 44 (lib.getBin llvmPackages.llvm) 45 ] 46 # On darwin, we need unwrapped bintools as well (for otool)
··· 40 targetPackages.stdenv.cc.bintools 41 coreutils # for cat 42 ] 43 + ++ lib.optionals (assert useLLVM -> !(llvmPackages == null); useLLVM) [ 44 (lib.getBin llvmPackages.llvm) 45 ] 46 # On darwin, we need unwrapped bintools as well (for otool)
+2 -1
pkgs/top-level/haskell-packages.nix
··· 65 66 compiler = { 67 ghc865Binary = callPackage ../development/compilers/ghc/8.6.5-binary.nix { 68 - llvmPackages = pkgs.llvmPackages_6; 69 }; 70 71 ghc8102Binary = callPackage ../development/compilers/ghc/8.10.2-binary.nix {
··· 65 66 compiler = { 67 ghc865Binary = callPackage ../development/compilers/ghc/8.6.5-binary.nix { 68 + # Should be llvmPackages_6 which has been removed from nixpkgs 69 + llvmPackages = null; 70 }; 71 72 ghc8102Binary = callPackage ../development/compilers/ghc/8.10.2-binary.nix {