1 { lib, stdenv, fetchFromGitHub, pkg-config, makeWrapper
2 , copyDesktopItems, makeDesktopItem
3 , ncurses, libtermkey, lua, tre
8 luaEnv = lua.withPackages(ps: [ ps.lpeg ]);
10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
16 hash = "sha256-SYM3zlzhp3NdyOjtXc+pOiWY4/WA/Ax+qAWe18ggq3g=";
21 nativeBuildInputs = [ pkg-config makeWrapper copyDesktopItems ];
28 ] ++ lib.optionals stdenv.hostPlatform.isLinux [
34 wrapProgram $out/bin/vis \
35 --prefix LUA_CPATH ';' "${luaEnv}/lib/lua/${lua.luaversion}/?.so" \
36 --prefix LUA_PATH ';' "${luaEnv}/share/lua/${lua.luaversion}/?.lua" \
37 --prefix VIS_PATH : "\$HOME/.config:$out/share/vis"
45 icon = "accessories-text-editor";
46 comment = meta.description;
48 genericName = "Text editor";
49 categories = [ "Application" "Development" "IDE" ];
50 mimeTypes = [ "text/plain" "application/octet-stream" ];
51 startupNotify = false;
57 description = "A vim like editor";
58 homepage = "https://github.com/martanne/vis";
59 license = licenses.isc;
60 maintainers = with maintainers; [ ramkromberg ];
61 platforms = platforms.unix;