about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-8.8.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.8.x.nix
parent76be6eaf29de81e7cdbad268e8f90106dcf021b5 (diff)
downloadnixlib-517cb71b026be805c41945dc86a7352b1bf8aa92.tar
nixlib-517cb71b026be805c41945dc86a7352b1bf8aa92.tar.gz
nixlib-517cb71b026be805c41945dc86a7352b1bf8aa92.tar.bz2
nixlib-517cb71b026be805c41945dc86a7352b1bf8aa92.tar.lz
nixlib-517cb71b026be805c41945dc86a7352b1bf8aa92.tar.xz
nixlib-517cb71b026be805c41945dc86a7352b1bf8aa92.tar.zst
nixlib-517cb71b026be805c41945dc86a7352b1bf8aa92.zip
haskellPackages.inline-c-cpp: Fix tests on darwin
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
index c0e9b7aab5ae..6b56d9eb7354 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
@@ -2,6 +2,10 @@
 
 with haskellLib;
 
+let
+  inherit (pkgs.stdenv.hostPlatform) isDarwin;
+in
+
 self: super: {
 
   llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
@@ -150,4 +154,7 @@ self: super: {
   mysql-simple = addBuildDepends [
     self.blaze-textual
   ] super.mysql-simple;
+
+  # 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;
 }