anchor.diff:      ));
   
     pyEnv = python.withPackages(ps: [ ps.pynvim ps.msgpack ]);
  +
  +  # FIXME: this is verry messy and strange.
  +  # see https://github.com/NixOS/nixpkgs/pull/80528
  +  luv = lua.pkgs.luv;
  +  luvpath = with builtins ; if stdenv.isDarwin
  +    then "${luv.libluv}/lib/lua/${lua.luaversion}/libluv.${head (match "([0-9.]+).*" luv.version)}.dylib"
  +    else "${luv}/lib/lua/${lua.luaversion}/luv.so";
  +
   in
     stdenv.mkDerivation rec {
       pname = "neovim-unwrapped";
  
positive.code:     cmakeFlags = [
        "-DGPERF_PRG=${gperf}/bin/gperf"
        "-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"
      ;
  
negative.code:       libtermkey
        libuv
        libvterm-neovim
        luv.libluv
        msgpack
        ncurses
        neovimLuaEnv
  