git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #41084 from obsidiansystems/fix-darwin-haskell

haskell generic-builder: Limit usage of --extra-framework-dirs on Darwin for compat

commit97e376bf9cafa2d6c812221677f2e38163d0acb8 authorJohn Ericson <Ericson2314@yahoo.com> dateFri 25 May 2018, 15:28 (9 years ago) parent0fd98c62e70a75
1 file changed+3
pkgs/development/haskell-modules/generic-builder.nix+3
pkgs/development/haskell-modules/generic-builder.nix+3
@@ -212,6 +212,9 @@ let
212212 if [ -d "$p/lib" ]; then
213213 configureFlags+=" --extra-lib-dirs=$p/lib"
214214 fi
215+ ''
216+ # It is not clear why --extra-framework-dirs does work fine on Linux
217+ + optionalString (!buildPlatform.isDarwin || versionAtLeast nativeGhc.version "8.0") ''
215218 if [[ -d "$p/Library/Frameworks" ]]; then
216219 configureFlags+=" --extra-framework-dirs=$p/Library/Frameworks"
217220 fi