Etapa G: nano — editor de texto al userland (65→66)
nano 9.0: editor de terminal real, segundo consumidor de ncurses tras htop/less (API curses widec). deps.build=[ncurses, linux-headers]; gueto gcc; sale static-pie y corre. Redondea el userland con un editor de verdad. --disable-libmagic/-nls (libmagic/gettext no en corpus, sólo autodetección/i18n). Publicado al repo (66).
Semantic delta
No definition changed: this change is text, documentation or data.
1 files · +31 −0
- recipes/nano.toml +31 −0
diff --git a/recipes/nano.toml b/recipes/nano.toml
new file mode 100644
index 00000000..1ff44286
--- /dev/null
+++ b/recipes/nano.toml
@@ -0,0 +1,31 @@
+# nano 9.0 — editor de texto de terminal. Etapa G, tier-2 C. Consumidor de ncurses (TUI real); rendondea
+# el userland con un editor de verdad. Destrabado por recipes/ncurses.toml.
+#
+# Importada de Alpine aports; ajustes: URL fija (`v9/nano-9.0.tar.xz`; el import dejó `${pkgver%%.*}`
+# sin expandir) + sha256 oficial. El tarball trae `configure`.
+#
+# deps.build = ["ncurses", "linux-headers"]: nano usa la API curses widec (-lncursesw) + headers de
+# Linux. --disable-libmagic (no tenemos libmagic como lib; sólo afecta autodetección de tipo de
+# fichero) + --disable-nls (sin gettext). gueto gcc (zig-cc miscompila estos C; ver file/jq). link=
+# static + nano enlaza el binario sin libtool ⇒ LDFLAGS=-static del lab basta (static-pie).
+# $CBUILD/$CHOST los da el lab (build==host ⇒ nativo).
+
+name = "nano"
+version = "9.0"
+
+[source]
+tarball = "https://www.nano-editor.org/dist/v9/nano-9.0.tar.xz"
+sha256 = "9f384374b496110a25b73ad5a5febb384783c6e3188b37063f677ac908013fde"
+
+[build]
+compiler = "gcc"
+target = "x86_64-linux-musl"
+link = "static"
+
+[build.phases]
+configure = "./configure --build=$CBUILD --host=$CHOST --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --disable-libmagic --disable-nls"
+compile = "make -j\"$(nproc)\""
+install = "make DESTDIR=/out install"
+
+[deps]
+build = ["ncurses", "linux-headers"]