Skip to content

Commit

Permalink
Merge pull request #41084 from obsidiansystems/fix-darwin-haskell
Browse files Browse the repository at this point in the history
haskell generic-builder: Limit usage of --extra-framework-dirs on Darwin for compat
  • Loading branch information
Ericson2314 committed May 25, 2018
2 parents 0fd98c6 + 2e70a75 commit 97e376b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/haskell-modules/generic-builder.nix
Expand Up @@ -212,6 +212,9 @@ let
if [ -d "$p/lib" ]; then
configureFlags+=" --extra-lib-dirs=$p/lib"
fi
''
# It is not clear why --extra-framework-dirs does work fine on Linux
+ optionalString (!buildPlatform.isDarwin || versionAtLeast nativeGhc.version "8.0") ''
if [[ -d "$p/Library/Frameworks" ]]; then
configureFlags+=" --extra-framework-dirs=$p/Library/Frameworks"
fi
Expand Down

0 comments on commit 97e376b

Please sign in to comment.