summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/generic-builder.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-13 10:53:09 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-23 10:26:57 -0400
commit513cd3de0e05fa25b08b4bf52e6389e406916190 (patch)
treef364c0da9e46f8ad15767c8ed810f83099a3e184 /pkgs/development/haskell-modules/generic-builder.nix
parent3394c96655822c36437a31bda3c006009b5ffc84 (diff)
downloadnixlib-513cd3de0e05fa25b08b4bf52e6389e406916190.tar
nixlib-513cd3de0e05fa25b08b4bf52e6389e406916190.tar.gz
nixlib-513cd3de0e05fa25b08b4bf52e6389e406916190.tar.bz2
nixlib-513cd3de0e05fa25b08b4bf52e6389e406916190.tar.lz
nixlib-513cd3de0e05fa25b08b4bf52e6389e406916190.tar.xz
nixlib-513cd3de0e05fa25b08b4bf52e6389e406916190.tar.zst
nixlib-513cd3de0e05fa25b08b4bf52e6389e406916190.zip
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.
Diffstat (limited to 'pkgs/development/haskell-modules/generic-builder.nix')
-rw-r--r--pkgs/development/haskell-modules/generic-builder.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix
index f08130a3157a..80d3bec38e7d 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -248,6 +248,9 @@ stdenv.mkDerivation ({
       if [ -d "$p/lib" ]; then
         configureFlags+=" --extra-lib-dirs=$p/lib"
       fi
+      if [[ -d "$p/Library/Frameworks" ]]; then
+        configureFlags+=" --extra-framework-dirs=$p/Library/Frameworks"
+      fi
     done
   ''
   # only use the links hack if we're actually building dylibs. otherwise, the