Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

85.1. nano-9.2

Small terminal text editor in the manner of Pico, with syntax colouring

9.2-1 · GPL-3.0-or-later · 0.8 SBU · 723.6 KiB, 53 files · 41_system, 206 of 1047 · ports/core/editors/nano

Homepage: https://www.nano-editor.org/

Depends on: ncurses, file, zlib.

Required by (1): cronie.

Sources: nano-9.2.tar.xz (1.7 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install nano'

build.sh:

./configure --prefix=/usr     \
  	            --sysconfdir=/etc \
  	            --enable-utf8     \
	    --enable-libmagic \
	    --disable-nls
make
make DESTDIR=$PKG install

install -Dm644 /dev/stdin "$PKG/etc/nanorc" <<'NANORC'
include "/usr/share/nano/*.nanorc"
include "/usr/share/nano/extra/*.nanorc"
NANORC

Programs: nano, rnano.

Directories: /usr/share/licenses/nano, /usr/share/nano.