git.iko.soy/typeable/nixpkgs
on master help sign in
haskell-generic-builder: Add extra framework dirs

Just like with the other `--extra-*` flags, cc/ld-wrapper already handles this, but we need to make Cabal aware so that the haskell builds have the correct metadata.

commit513cd3de0e05fa25b08b4bf52e6389e406916190 authorJohn Ericson <John.Ericson@Obsidian.Systems> dateSun 13 May 2018, 10:53 (9 years ago) parent3394c96
1 file changed+3
pkgs/development/haskell-modules/generic-builder.nix+3
pkgs/development/haskell-modules/generic-builder.nix+3
@@ -248,6 +248,9 @@ stdenv.mkDerivation ({
248248 if [ -d "$p/lib" ]; then
249249 configureFlags+=" --extra-lib-dirs=$p/lib"
250250 fi
251+ if [[ -d "$p/Library/Frameworks" ]]; then
252+ configureFlags+=" --extra-framework-dirs=$p/Library/Frameworks"
253+ fi
251254 done
252255 ''
253256 # only use the links hack if we're actually building dylibs. otherwise, the