Revert "Merge pull request #94090 from sikmir/fix-cmake-hook"

This reverts commit e36b1d4ad1, reversing
changes made to c2ea7318be.

Should go to staging.
This commit is contained in:
Matthew Bauer
2020-07-29 18:20:56 -05:00
parent e36b1d4ad1
commit 22f82fc8ca
4 changed files with 5 additions and 3 deletions
@@ -44,7 +44,7 @@ let
"-DENABLE_JAVASCRIPT=OFF" # Requires v8 <= 3.24.3, https://github.com/weechat/weechat/issues/360
"-DENABLE_PHP=OFF"
]
++ optionals stdenv.isDarwin ["-DICONV_LIBRARY=${libiconv}/lib/libiconv.dylib"]
++ optionals stdenv.isDarwin ["-DICONV_LIBRARY=${libiconv}/lib/libiconv.dylib" "-DCMAKE_FIND_FRAMEWORK=LAST"]
++ map (p: "-D${p.cmakeFlag}=" + (if p.enabled then "ON" else "OFF")) plugins
;