anchor.diff:      cmakeFlags = [
         "-DGPERF_PRG=${gperf}/bin/gperf"
         "-DLUA_PRG=${neovimLuaEnv.interpreter}"
  +      "-DLIBLUV_LIBRARY=${luvpath}"
       ]
  -    # 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"
       ;
  
positive.code:       libtermkey
        libuv
        libvterm-neovim
        lua.pkgs.luv.libluv
        msgpack
        ncurses
        neovimLuaEnv
  
negative.code:     ));
  
    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";
  