18 luaEnv = lua.withPackages (ps: [ ps.lpeg ]);
20 stdenv.mkDerivation rec {
24 src = fetchFromGitHub {
26 hash = "sha256-SYM3zlzhp3NdyOjtXc+pOiWY4/WA/Ax+qAWe18ggq3g=";
44 ++ lib.optionals stdenv.hostPlatform.isLinux [
50 wrapProgram $out/bin/vis \
51 --prefix LUA_CPATH ';' "${luaEnv}/lib/lua/${lua.luaversion}/?.so" \
52 --prefix LUA_PATH ';' "${luaEnv}/share/lua/${lua.luaversion}/?.lua" \
53 --prefix VIS_PATH : "\$HOME/.config:$out/share/vis"
61 icon = "accessories-text-editor";
62 comment = meta.description;
64 genericName = "Text editor";
72 "application/octet-stream"
74 startupNotify = false;
80 description = "A vim like editor";
81 homepage = "https://github.com/martanne/vis";
82 license = licenses.isc;
83 maintainers = with maintainers; [ ramkromberg ];
84 platforms = platforms.unix;