codex
nixpkgs master recipe for codex changed since the last snapshot.
Review the diff and port anything relevant into home-manager/pkgs/codex/package.nix.
--- home-manager/pkgs/codex/nixpkgs-upstream.nix 2026-08-09 20:48:49.487102827 +0000
+++ /tmp/upstream.nix 2026-08-09 20:48:49.918668444 +0000
@@ -14,6 +14,9 @@
librusty_v8 ? callPackage ./librusty_v8.nix {
inherit (callPackage ./fetchers.nix { }) fetchLibrustyV8;
},
+ librusty_v8_src_binding ? callPackage ./librusty_v8_src_binding.nix {
+ inherit (callPackage ./fetchers.nix { }) fetchLibrustyV8SrcBinding;
+ },
lld,
makeBinaryWrapper,
nix-update-script,
@@ -22,21 +25,22 @@
ripgrep,
versionCheckHook,
installShellCompletions ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
+ _experimental-update-script-combinators,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "codex";
- version = "0.146.0";
+ version = "0.147.0";
src = fetchFromGitHub {
owner = "openai";
repo = "codex";
tag = "rust-v${finalAttrs.version}";
- hash = "sha256-/kTIOX/klxm1nq2bJsBqS8f1jZZp2ilaTeULQFPJgDk=";
+ hash = "sha256-NKeOxp9vLcx7tpghqhpS3ocPqUDP2PircNwkJNpHBPo=";
};
sourceRoot = "${finalAttrs.src.name}/codex-rs";
- cargoHash = "sha256-N9jbH/cgAyu2QxneSnpkdaF0MgV3ZtDmN9q6rr9u+hE=";
+ cargoHash = "sha256-MJuM2QLxvL+r/Gw8QXLjtsLS25QGVCqcqU5GJssSoQ4=";
__structuredAttrs = true;
@@ -93,6 +97,7 @@
]
);
RUSTY_V8_ARCHIVE = librusty_v8;
+ RUSTY_V8_SRC_BINDING_PATH = librusty_v8_src_binding;
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# Link with lld on Darwin. nixpkgs' classic open-source ld64 fails to insert
@@ -124,15 +129,16 @@
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
- passthru = {
- updateScript = nix-update-script {
+ passthru.updateScript = _experimental-update-script-combinators.sequence [
+ (nix-update-script {
extraArgs = [
"--use-github-releases"
"--version-regex"
"^rust-v(\\d+\\.\\d+\\.\\d+)$"
];
- };
- };
+ })
+ ./update-librusty.sh
+ ];
meta = {
description = "Lightweight coding agent that runs in your terminal";
codex
nixpkgs master recipe for
codexchanged since the last snapshot.Review the diff and port anything relevant into
home-manager/pkgs/codex/package.nix.