From e83542a4a9a039cebb86d7ba000152a12e299a77 Mon Sep 17 00:00:00 2001 From: sergio Date: Sun, 21 Jun 2026 09:47:52 -0400 Subject: [PATCH] =?UTF-8?q?Etapa=20G:=20primera=20tanda=20a=20escala=20?= =?UTF-8?q?=E2=80=94=2011=20CLI=20Rust=20construyen+corren=20(corpus=2034?= =?UTF-8?q?=E2=86=9245)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Arranca el escalado del catálogo con la tanda tier-1 (tandas/cli-rust.txt) por el pipeline completo: import-batch (escalera) → pin (tag→SHA) → build (medir) → promover. BUILD-YIELD MEDIDO (no especulación): 11/12 de la tanda construyen+corren como ELF estático musl en el lab. Los 11 promovidos al corpus: bat 0.26.1, bottom 0.12.3, dust, fd 10.4.2, hexyl, hyperfine, procs, sd, tokei, xh 0.25.3 (rustls, no openssl), zoxide. (ripgrep ya estaba en el corpus con su patch jemalloc; no se duplica.) El primer corte dio 8/12: los 4 con deps fallaban por buildInputs espurias de nix (bat→zlib, fd→jemalloc, ripgrep→pcre2, xh→openssl) — backends C que el build Rust por defecto NO usa. Arreglado en el importador (commit anterior): re-importados bat/fd/xh SIN [deps] → los 3 construyen (bat 372s, fd 251s, xh 413s). Sube 8/12 → 11/12. Verificado: los binarios CORREN (fd/bat/xh --version), estáticos musl stripped. Co-Authored-By: Claude Opus 4.8 --- recipes/bat.toml | 22 ++++++++++++++++++++++ recipes/bottom.toml | 19 +++++++++++++++++++ recipes/dust.toml | 19 +++++++++++++++++++ recipes/fd.toml | 22 ++++++++++++++++++++++ recipes/hexyl.toml | 19 +++++++++++++++++++ recipes/hyperfine.toml | 19 +++++++++++++++++++ recipes/procs.toml | 19 +++++++++++++++++++ recipes/sd.toml | 19 +++++++++++++++++++ recipes/tokei.toml | 19 +++++++++++++++++++ recipes/xh.toml | 22 ++++++++++++++++++++++ recipes/zoxide.toml | 19 +++++++++++++++++++ 11 files changed, 218 insertions(+) create mode 100644 recipes/bat.toml create mode 100644 recipes/bottom.toml create mode 100644 recipes/dust.toml create mode 100644 recipes/fd.toml create mode 100644 recipes/hexyl.toml create mode 100644 recipes/hyperfine.toml create mode 100644 recipes/procs.toml create mode 100644 recipes/sd.toml create mode 100644 recipes/tokei.toml create mode 100644 recipes/xh.toml create mode 100644 recipes/zoxide.toml diff --git a/recipes/bat.toml b/recipes/bat.toml new file mode 100644 index 00000000..7f964d39 --- /dev/null +++ b/recipes/bat.toml @@ -0,0 +1,22 @@ +# Importada de nixpkgs por `hammer import-nix` (Etapa G). PUNTO DE PARTIDA, no final: +# - el build usa el lab de hammer (zig-cc / musl estático), NO el stdenv de nix ⇒ revisá +# compiler/link/phases y adaptá hasta que compile. +# - las deps van con su nombre NIX; remapealas a las recetas del corpus si difieren. +name = "bat" +version = "0.26.1" + +[source] +repo = "https://github.com/sharkdp/bat" +commit = "979ba22628bc9d8171f2cffca2bd5c90c9fc0a9e" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "static" +flags = ["--bin", "bat"] + +[build.phases] +install = "mkdir -p /out/usr/bin && cp target/release/bat /out/usr/bin/bat" + +# buildInputs de nix (NO deps de hammer — cargo vendorea; backend Rust por +# defecto). Si algún sys-crate C falla, adaptá per-paquete (patch/feature): zlib diff --git a/recipes/bottom.toml b/recipes/bottom.toml new file mode 100644 index 00000000..22f4db02 --- /dev/null +++ b/recipes/bottom.toml @@ -0,0 +1,19 @@ +# Importada de nixpkgs por `hammer import-nix` (Etapa G). PUNTO DE PARTIDA, no final: +# - el build usa el lab de hammer (zig-cc / musl estático), NO el stdenv de nix ⇒ revisá +# compiler/link/phases y adaptá hasta que compile. +# - las deps van con su nombre NIX; remapealas a las recetas del corpus si difieren. +name = "bottom" +version = "0.12.3" + +[source] +repo = "https://github.com/ClementTsang/bottom" +commit = "2f0e9dea99232f0cb116dd1011d9ff1ba9495594" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "static" +flags = ["--bin", "btm"] + +[build.phases] +install = "mkdir -p /out/usr/bin && cp target/release/btm /out/usr/bin/btm" diff --git a/recipes/dust.toml b/recipes/dust.toml new file mode 100644 index 00000000..51c3dda0 --- /dev/null +++ b/recipes/dust.toml @@ -0,0 +1,19 @@ +# Importada de nixpkgs por `hammer import-nix` (Etapa G). PUNTO DE PARTIDA, no final: +# - el build usa el lab de hammer (zig-cc / musl estático), NO el stdenv de nix ⇒ revisá +# compiler/link/phases y adaptá hasta que compile. +# - las deps van con su nombre NIX; remapealas a las recetas del corpus si difieren. +name = "du-dust" +version = "1.2.4" + +[source] +repo = "https://github.com/bootandy/dust" +commit = "fabe19b8de4d1d36ad55dfa28b00698bc55297e6" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "static" +flags = ["--bin", "dust"] + +[build.phases] +install = "mkdir -p /out/usr/bin && cp target/release/dust /out/usr/bin/dust" diff --git a/recipes/fd.toml b/recipes/fd.toml new file mode 100644 index 00000000..370c2890 --- /dev/null +++ b/recipes/fd.toml @@ -0,0 +1,22 @@ +# Importada de nixpkgs por `hammer import-nix` (Etapa G). PUNTO DE PARTIDA, no final: +# - el build usa el lab de hammer (zig-cc / musl estático), NO el stdenv de nix ⇒ revisá +# compiler/link/phases y adaptá hasta que compile. +# - las deps van con su nombre NIX; remapealas a las recetas del corpus si difieren. +name = "fd" +version = "10.4.2" + +[source] +repo = "https://github.com/sharkdp/fd" +commit = "7027d45303b412be6fa9c09d689cc6276748fb38" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "static" +flags = ["--bin", "fd"] + +[build.phases] +install = "mkdir -p /out/usr/bin && cp target/release/fd /out/usr/bin/fd" + +# buildInputs de nix (NO deps de hammer — cargo vendorea; backend Rust por +# defecto). Si algún sys-crate C falla, adaptá per-paquete (patch/feature): jemalloc diff --git a/recipes/hexyl.toml b/recipes/hexyl.toml new file mode 100644 index 00000000..86f53286 --- /dev/null +++ b/recipes/hexyl.toml @@ -0,0 +1,19 @@ +# Importada de nixpkgs por `hammer import-nix` (Etapa G). PUNTO DE PARTIDA, no final: +# - el build usa el lab de hammer (zig-cc / musl estático), NO el stdenv de nix ⇒ revisá +# compiler/link/phases y adaptá hasta que compile. +# - las deps van con su nombre NIX; remapealas a las recetas del corpus si difieren. +name = "hexyl" +version = "0.17.0" + +[source] +repo = "https://github.com/sharkdp/hexyl" +commit = "8eb6d4771ce1ec7af65d06bd335457783b77d557" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "static" +flags = ["--bin", "hexyl"] + +[build.phases] +install = "mkdir -p /out/usr/bin && cp target/release/hexyl /out/usr/bin/hexyl" diff --git a/recipes/hyperfine.toml b/recipes/hyperfine.toml new file mode 100644 index 00000000..da8957c3 --- /dev/null +++ b/recipes/hyperfine.toml @@ -0,0 +1,19 @@ +# Importada de nixpkgs por `hammer import-nix` (Etapa G). PUNTO DE PARTIDA, no final: +# - el build usa el lab de hammer (zig-cc / musl estático), NO el stdenv de nix ⇒ revisá +# compiler/link/phases y adaptá hasta que compile. +# - las deps van con su nombre NIX; remapealas a las recetas del corpus si difieren. +name = "hyperfine" +version = "1.20.0" + +[source] +repo = "https://github.com/sharkdp/hyperfine" +commit = "975fe108c4ee7bd2600d10758207b44ca3dae738" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "static" +flags = ["--bin", "hyperfine"] + +[build.phases] +install = "mkdir -p /out/usr/bin && cp target/release/hyperfine /out/usr/bin/hyperfine" diff --git a/recipes/procs.toml b/recipes/procs.toml new file mode 100644 index 00000000..86e5917f --- /dev/null +++ b/recipes/procs.toml @@ -0,0 +1,19 @@ +# Importada de nixpkgs por `hammer import-nix` (Etapa G). PUNTO DE PARTIDA, no final: +# - el build usa el lab de hammer (zig-cc / musl estático), NO el stdenv de nix ⇒ revisá +# compiler/link/phases y adaptá hasta que compile. +# - las deps van con su nombre NIX; remapealas a las recetas del corpus si difieren. +name = "procs" +version = "0.14.11" + +[source] +repo = "https://github.com/dalance/procs" +commit = "079fa764eeb9716ca58c47e2ca2c72535c02e2b9" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "static" +flags = ["--bin", "procs"] + +[build.phases] +install = "mkdir -p /out/usr/bin && cp target/release/procs /out/usr/bin/procs" diff --git a/recipes/sd.toml b/recipes/sd.toml new file mode 100644 index 00000000..229a8e41 --- /dev/null +++ b/recipes/sd.toml @@ -0,0 +1,19 @@ +# Importada de nixpkgs por `hammer import-nix` (Etapa G). PUNTO DE PARTIDA, no final: +# - el build usa el lab de hammer (zig-cc / musl estático), NO el stdenv de nix ⇒ revisá +# compiler/link/phases y adaptá hasta que compile. +# - las deps van con su nombre NIX; remapealas a las recetas del corpus si difieren. +name = "sd" +version = "1.1.0" + +[source] +repo = "https://github.com/chmln/sd" +commit = "4a7b216552d64134c0fa17a59b9d557d89019f0f" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "static" +flags = ["--bin", "sd"] + +[build.phases] +install = "mkdir -p /out/usr/bin && cp target/release/sd /out/usr/bin/sd" diff --git a/recipes/tokei.toml b/recipes/tokei.toml new file mode 100644 index 00000000..8924c300 --- /dev/null +++ b/recipes/tokei.toml @@ -0,0 +1,19 @@ +# Importada de nixpkgs por `hammer import-nix` (Etapa G). PUNTO DE PARTIDA, no final: +# - el build usa el lab de hammer (zig-cc / musl estático), NO el stdenv de nix ⇒ revisá +# compiler/link/phases y adaptá hasta que compile. +# - las deps van con su nombre NIX; remapealas a las recetas del corpus si difieren. +name = "tokei" +version = "14.0.0" + +[source] +repo = "https://github.com/XAMPPRocky/tokei" +commit = "8cdd6fa3a54f8cd69442d2f00effb29aa3110353" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "static" +flags = ["--bin", "tokei"] + +[build.phases] +install = "mkdir -p /out/usr/bin && cp target/release/tokei /out/usr/bin/tokei" diff --git a/recipes/xh.toml b/recipes/xh.toml new file mode 100644 index 00000000..3eeaef04 --- /dev/null +++ b/recipes/xh.toml @@ -0,0 +1,22 @@ +# Importada de nixpkgs por `hammer import-nix` (Etapa G). PUNTO DE PARTIDA, no final: +# - el build usa el lab de hammer (zig-cc / musl estático), NO el stdenv de nix ⇒ revisá +# compiler/link/phases y adaptá hasta que compile. +# - las deps van con su nombre NIX; remapealas a las recetas del corpus si difieren. +name = "xh" +version = "0.25.3" + +[source] +repo = "https://github.com/ducaale/xh" +commit = "5b49261d216af88e81fe0a2616b4f4d543c47c1f" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "static" +flags = ["--bin", "xh"] + +[build.phases] +install = "mkdir -p /out/usr/bin && cp target/release/xh /out/usr/bin/xh" + +# buildInputs de nix (NO deps de hammer — cargo vendorea; backend Rust por +# defecto). Si algún sys-crate C falla, adaptá per-paquete (patch/feature): openssl diff --git a/recipes/zoxide.toml b/recipes/zoxide.toml new file mode 100644 index 00000000..3fbe62f4 --- /dev/null +++ b/recipes/zoxide.toml @@ -0,0 +1,19 @@ +# Importada de nixpkgs por `hammer import-nix` (Etapa G). PUNTO DE PARTIDA, no final: +# - el build usa el lab de hammer (zig-cc / musl estático), NO el stdenv de nix ⇒ revisá +# compiler/link/phases y adaptá hasta que compile. +# - las deps van con su nombre NIX; remapealas a las recetas del corpus si difieren. +name = "zoxide" +version = "0.9.9" + +[source] +repo = "https://github.com/ajeetdsouza/zoxide" +commit = "9cdc6aa3740b4d8a9d62406c99e84c5de49645e9" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "static" +flags = ["--bin", "zoxide"] + +[build.phases] +install = "mkdir -p /out/usr/bin && cp target/release/zoxide /out/usr/bin/zoxide"