Riapplica la fase 5 di aKode (86e7c72e) sulla base ripulita:
- crate codex-* -> akode-*, codex-rs -> akode-rs, codex-cli -> akode-cli, binario e ausiliari akode;
- ~/.codex -> ~/.akode, CODEX_HOME -> AKODE_HOME, variabili CODEX_* -> AKODE_*, .codex/ -> .akode/ di progetto;
nessun fallback a ~/.codex o a CODEX_*;
- testi per l'utente "Codex" -> "aKode"; testi verso il modello e istruzioni di sistema invariati;
- snapshot insta rinominati (non ancora rigenerati).
I conflitti con la base ripulita sono stati risolti riapplicando la rinomina ai file senza le
funzioni di imeAI (script di mappa dei token per file).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
56 lines
1.6 KiB
Nix
56 lines
1.6 KiB
Nix
{
|
||
cmake,
|
||
llvmPackages,
|
||
openssl,
|
||
libcap ? null,
|
||
rustPlatform,
|
||
pkg-config,
|
||
lib,
|
||
stdenv,
|
||
version ? "0.0.0",
|
||
...
|
||
}:
|
||
rustPlatform.buildRustPackage (_: {
|
||
env.PKG_CONFIG_PATH = lib.makeSearchPathOutput "dev" "lib/pkgconfig" (
|
||
[ openssl ] ++ lib.optionals stdenv.isLinux [ libcap ]
|
||
);
|
||
pname = "akode-rs";
|
||
inherit version;
|
||
cargoLock.lockFile = ./Cargo.lock;
|
||
doCheck = false;
|
||
src = ./.;
|
||
|
||
# Patch the workspace Cargo.toml so that cargo embeds the correct version in
|
||
# CARGO_PKG_VERSION (which the binary reads via env!("CARGO_PKG_VERSION")).
|
||
# On release commits the Cargo.toml already contains the real version and
|
||
# this sed is a no-op.
|
||
postPatch = ''
|
||
sed -i 's/^version = "0\.0\.0"$/version = "${version}"/' Cargo.toml
|
||
'';
|
||
nativeBuildInputs = [
|
||
cmake
|
||
llvmPackages.clang
|
||
llvmPackages.libclang.lib
|
||
openssl
|
||
pkg-config
|
||
] ++ lib.optionals stdenv.isLinux [
|
||
libcap
|
||
];
|
||
|
||
cargoLock.outputHashes = {
|
||
"crossterm-0.29.0" = "sha256-ewiWWQPEU1lSUHzmZTiO5yes5luIaQ9TrvCNnTWhxpE=";
|
||
"nucleo-0.5.0" = "sha256-Hm4SxtTSBrcWpXrtSqeO0TACbUxq3gizg1zD/6Yw/sI=";
|
||
"nucleo-matcher-0.3.1" = "sha256-Hm4SxtTSBrcWpXrtSqeO0TACbUxq3gizg1zD/6Yw/sI=";
|
||
"runfiles-0.1.0" = "sha256-uJpVLcQh8wWZA3GPv9D8Nt43EOirajfDJ7eq/FB+tek=";
|
||
"tokio-tungstenite-0.28.0" = "sha256-hJAkvWxDjB9A9GqansahWhTmj/ekcelslLUTtwqI7lw=";
|
||
"tungstenite-0.27.0" = "sha256-AN5wql2X2yJnQ7lnDxpljNw0Jua40GtmT+w3wjER010=";
|
||
};
|
||
|
||
meta = with lib; {
|
||
description = "OpenAI Codex command‑line interface rust implementation";
|
||
license = licenses.asl20;
|
||
homepage = "https://github.com/openai/codex";
|
||
mainProgram = "codex";
|
||
};
|
||
})
|