about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2021-12-24 21:12:56 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-04-01 16:56:31 +0200
commit517cb71b026be805c41945dc86a7352b1bf8aa92 (patch)
treef99e8a75170a749ef0d3f5da033d2c0a8ee82ca0 /pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
parent76be6eaf29de81e7cdbad268e8f90106dcf021b5 (diff)
haskellPackages.inline-c-cpp: Fix tests on darwin
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
index d712ab9d1a2b1..5eaa1ae413d47 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
@@ -2,6 +2,10 @@
 
 with haskellLib;
 
+let
+  inherit (pkgs.stdenv.hostPlatform) isDarwin;
+in
+
 self: super: {
 
   llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
@@ -104,4 +108,6 @@ self: super: {
 
   mime-string = disableOptimization super.mime-string;
 
+  # https://github.com/fpco/inline-c/issues/127 (recommend to upgrade to Nixpkgs GHC >=9.0)
+  inline-c-cpp = (if isDarwin then dontCheck else x: x) super.inline-c-cpp;
 }