1DOLLY 82PACKAGE nvim3REQUIRES HOST runtime@04REQUIRES HOST dso@056# Neovim and its grammars over the utf8proc and tree-sitter packages; Lua,7# LPeg and luv come from the lua package. All are linked in.8FROM /demos/cmake/Dollyfile-cmake-build ec172ae8a3b79bf8dcf9ea2b9c070699dcf05b337ea738e2b6657bb1d0fb70049USE /demos/neovim/Dollyfile-lua 78ede9c5ee4267b7738bbdcb78b9b38d6f99a39b2e812cfb62c5d1149156316310USE /demos/neovim/Dollyfile-utf8proc c6870f698bf67244fa8f08360164ceee03cdccd5b09a7f872386bec99407790211USE /demos/neovim/Dollyfile-tree-sitter 0fdce9177a672703a71f9112c62971d50bb10c9eb6d49bd083aaf2c9669a1f0412USE /Dollyfile-mandoc dbd78781612d0a1e380901d92439cdfa17a919ed6b7f7c316152117382aabdfe13REQUIRES TOOL uname14REQUIRES LIB utf8proc15REQUIRES LIB tree-sitter16REQUIRES HEADER tree_sitter1718# Upstream generators and the editor itself execute inside Dolly.19REQUIRES HEADER luv20REQUIRES LIB luv21REQUIRES LIB lpeg22REQUIRES LIB lua-lpeg23REQUIRES LIB lua-luv24REQUIRES TOOL sh25REQUIRES TOOL sleep26REQUIRES TOOL timeout2728SOURCE /dist/static/neovim/neovim.tar.gz 037fc672b70c6bc962e9ecf08b847f5d4f4d2e526678c00dd8382aa156db3c82 /tmp/neovim/source.tar.gz29SLOP gzip -dc /tmp/neovim/source.tar.gz | tar -xf - -C /30SLOP cmake -S /tmp/neovim/source -B /tmp/neovim/build \31  -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \32  -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE=-O2 \33  -DPREFER_LUA=ON -DENABLE_LTO=OFF -DENABLE_LIBINTL=OFF \34  -DENABLE_UNIBILIUM=OFF -DENABLE_WASMTIME=OFF \35  -DLUA_INCLUDE_DIR=/usr/include/lua5.1 -DLUA_LIBRARY=/usr/lib/liblua.a -DLUA_MATH_LIBRARY:STRING=m36SLOP cmake --build /tmp/neovim/build --target nvim37SLOP cmake --install /tmp/neovim/build3839FILE /tmp/neovim/check.lua40    vim.api.nvim_buf_set_lines(0, 0, -1, false, {"Dolly", "日本語"})41    vim.cmd("write /tmp/neovim/check.txt")42    vim.cmd("bdelete!")43    vim.cmd("edit /tmp/neovim/check.txt")44    assert(vim.deep_equal(vim.api.nvim_buf_get_lines(0, 0, -1, false), {"Dolly", "日本語"}))45    local result = vim.fn.system({"/bin/slop", "-c", "printf SLOP-CHILD"})46    assert(result == "SLOP-CHILD" and vim.v.shell_error == 0,47      "Slop child status " .. vim.v.shell_error .. ": " .. vim.inspect(result))48    local stopped, output = false, ""49    local job = vim.fn.jobstart({"/bin/slop", "-c", "printf FIRST; read answer; printf SECOND; sleep 30"}, {50      on_stdout = function(_, data) output = output .. table.concat(data, "\n") end,51      on_exit = function() stopped = true end,52    })53    assert(job > 0)54    assert(vim.wait(3000, function() return output:find("FIRST", 1, true) end))55    assert(vim.fn.chansend(job, "go\n") > 0)56    assert(vim.wait(3000, function() return output:find("SECOND", 1, true) end))57    assert(vim.fn.jobstop(job) == 1)58    assert(vim.wait(3000, function() return stopped end))59    vim.cmd("quit!")60SLOP timeout 60 nvim --clean --headless -l /tmp/neovim/check.lua6162EXPORTS TOOL nvim63EXPORTS FOLDER nvim-runtime /usr/share/nvim64EXPORTS FOLDER nvim-libraries /usr/lib/nvim65FILE /usr/share/licenses/neovim/LICENSE.txt66FILE /usr/share/licenses/neovim/mpack67FILE /usr/share/licenses/neovim/vterm68FILE /usr/share/licenses/lua/COPYRIGHT69FILE /usr/share/licenses/lpeg/lpeg.html70FILE /usr/share/licenses/luv/LICENSE.txt71FILE /usr/share/licenses/lua-compat53/LICENSE72FILE /usr/share/licenses/utf8proc/LICENSE73FILE /usr/share/licenses/tree-sitter/LICENSE74FILE /usr/share/licenses/tree-sitter/Unicode-LICENSE75FILE /usr/share/licenses/libuv/LICENSE76REQUIRES TOOL text-page77SLOP text-page /tmp/neovim/source/src/man/nvim.178FILE /usr/share/man/cat1/nvim.179SLOP rm -rf /tmp/neovim80REQUIRES TOOL nvim8182# Neovim's pinned grammars and its own CMake build recipes, all built in Dolly.83SOURCE /dist/static/neovim/parsers.tar 18656076f67f0cb39a68cbe1c6f628c35faf23e2ec207f914e97874a9cf323f7 /tmp/neovim-parsers/source.tar84SLOP tar -xf /tmp/neovim-parsers/source.tar -C /85FILE /tmp/neovim-parsers/build.slop86    set -ex87    for language in c lua vim vimdoc query markdown; do88      cmake -S /tmp/neovim-parsers/$language -B /tmp/neovim-parsers/$language/build \89        -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS=-O2 -DPARSERLANG=$language90      cmake --build /tmp/neovim-parsers/$language/build91      cmake --install /tmp/neovim-parsers/$language/build92    done93SLOP slop /tmp/neovim-parsers/build.slop9495FILE /tmp/neovim-parsers/check.lua96    for language, source in pairs({97      c = "int main(void) { return 0; }",98      lua = "return 42",99      vim = "echo 'Dolly'\n",100      vimdoc = "Dolly\n\n",101      query = "(identifier) @name",102      markdown = "# Dolly\n",103      markdown_inline = "**Dolly**",104    }) do105      local parser = vim.treesitter.get_string_parser(source, language)106      local tree = assert(parser:parse()[1])107      assert(not tree:root():has_error(), language .. ": " .. tree:root():sexpr())108    end109    vim.cmd("quit!")110SLOP timeout 30 nvim --clean --headless -l /tmp/neovim-parsers/check.lua111112EXPORTS FOLDER nvim-parsers /usr/lib/nvim/parser113EXPORTS FOLDER nvim-parser-licenses /usr/share/licenses/neovim-parsers114SLOP rm -rf /tmp/neovim-parsers115