summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-nix.nix
diff options
context:
space:
mode:
authorTravis Whitaker <pi.boy.travis@gmail.com>2018-08-04 12:41:04 -0700
committerRyan Mulligan <ryan@ryantm.com>2018-08-05 07:46:10 -0700
commita3e7fc876ab7412b60ae290f360f2f32854386ff (patch)
treeb63f4727cee5b23af60ecd60d9506f512896fead /pkgs/development/haskell-modules/configuration-nix.nix
parentbb76f9a210fab5422b2d0e01c306369359eddf9a (diff)
downloadnixlib-a3e7fc876ab7412b60ae290f360f2f32854386ff.tar
nixlib-a3e7fc876ab7412b60ae290f360f2f32854386ff.tar.gz
nixlib-a3e7fc876ab7412b60ae290f360f2f32854386ff.tar.bz2
nixlib-a3e7fc876ab7412b60ae290f360f2f32854386ff.tar.lz
nixlib-a3e7fc876ab7412b60ae290f360f2f32854386ff.tar.xz
nixlib-a3e7fc876ab7412b60ae290f360f2f32854386ff.tar.zst
nixlib-a3e7fc876ab7412b60ae290f360f2f32854386ff.zip
haskellPackages.llvm-hs: Use LLVM 6 with llvm-hs, don't run tests on Darwin.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-nix.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-nix.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix
index a6cfef6f45f6..3164d23ca53e 100644
--- a/pkgs/development/haskell-modules/configuration-nix.nix
+++ b/pkgs/development/haskell-modules/configuration-nix.nix
@@ -264,11 +264,13 @@ self: super: builtins.intersectAttrs super {
       }
     );
 
-  llvm-hs = super.llvm-hs.override { llvm-config = pkgs.llvm; };
-  llvm-hs_6_3_0 = super.llvm-hs_6_3_0.override {
-    llvm-config = pkgs.llvm_6;
-    llvm-hs-pure = super.llvm-hs-pure_6_2_1;
-  };
+  llvm-hs =
+      let dontCheckDarwin = if pkgs.stdenv.isDarwin
+                            then dontCheck
+                            else pkgs.lib.id;
+      in dontCheckDarwin (super.llvm-hs.override {
+        llvm-config = pkgs.llvm_6;
+      });
 
   # Needs help finding LLVM.
   spaceprobe = addBuildTool super.spaceprobe self.llvmPackages.llvm;