about summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2019-10-02 00:08:47 +0200
committerDaiderd Jordan <daiderd@gmail.com>2019-10-02 00:30:42 +0200
commitc819648a68edd4bfe44456f04830cffdfeb49b11 (patch)
treecf0802777698a6abde94a363dc894588109c459d /pkgs/applications/editors
parentfc408c8690218bf07d7c9338e39c23577348c23b (diff)
downloadnixlib-c819648a68edd4bfe44456f04830cffdfeb49b11.tar
nixlib-c819648a68edd4bfe44456f04830cffdfeb49b11.tar.gz
nixlib-c819648a68edd4bfe44456f04830cffdfeb49b11.tar.bz2
nixlib-c819648a68edd4bfe44456f04830cffdfeb49b11.tar.lz
nixlib-c819648a68edd4bfe44456f04830cffdfeb49b11.tar.xz
nixlib-c819648a68edd4bfe44456f04830cffdfeb49b11.tar.zst
nixlib-c819648a68edd4bfe44456f04830cffdfeb49b11.zip
neovim: link against libluv on darwin
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/neovim/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix
index 6808d7115c57..99b04059730d 100644
--- a/pkgs/applications/editors/neovim/default.nix
+++ b/pkgs/applications/editors/neovim/default.nix
@@ -79,9 +79,11 @@ in
 
     cmakeFlags = [
       "-DGPERF_PRG=${gperf}/bin/gperf"
-      "-DLIBLUV_LIBRARY=${lua.pkgs.luv}/lib/lua/${lua.luaversion}/luv.so"
       "-DLUA_PRG=${neovimLuaEnv.interpreter}"
     ]
+    # FIXME: this is verry messy and strange.
+    ++ optional (!stdenv.isDarwin) "-DLIBLUV_LIBRARY=${lua.pkgs.luv}/lib/lua/${lua.luaversion}/luv.so"
+    ++ optional (stdenv.isDarwin) "-DLIBLUV_LIBRARY=${lua.pkgs.luv.libluv}/lib/lua/${lua.luaversion}/libluv.dylib"
     ++ optional doCheck "-DBUSTED_PRG=${neovimLuaEnv}/bin/busted"
     ++ optional (!lua.pkgs.isLuaJIT) "-DPREFER_LUA=ON"
     ;