From a0b0df93018aa7d5852fb9cebd36bb0a161961b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Wed, 24 Sep 2025 14:18:50 -0700 Subject: [PATCH] codex: 0.40.0 -> 0.41.0 --- pkgs/by-name/co/codex/package.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/co/codex/package.nix b/pkgs/by-name/co/codex/package.nix index 139d9998b25a..9044f0c76703 100644 --- a/pkgs/by-name/co/codex/package.nix +++ b/pkgs/by-name/co/codex/package.nix @@ -4,29 +4,32 @@ rustPlatform, fetchFromGitHub, installShellFiles, + makeBinaryWrapper, nix-update-script, pkg-config, openssl, + ripgrep, versionCheckHook, installShellCompletions ? stdenv.buildPlatform.canExecute stdenv.hostPlatform, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "codex"; - version = "0.40.0"; + version = "0.41.0"; src = fetchFromGitHub { owner = "openai"; repo = "codex"; tag = "rust-v${finalAttrs.version}"; - hash = "sha256-IBYx362R2ueYNg7/vcjGa2kKAfGlPm6JcZ/A4XKtMT4="; + hash = "sha256-Dz+RE3Ejr7BcJBJq5+UMP2Pb6v8A2intn3LzozoWovE="; }; sourceRoot = "${finalAttrs.src.name}/codex-rs"; - cargoHash = "sha256-fWrZXXQfrm0L3epquDZUj0SuLRn3WiHX3nQA3d+xnUg="; + cargoHash = "sha256-0sCmo3/3kY+nCufATBySAif5Z/T89Le0UedVgCrZiW8="; nativeBuildInputs = [ installShellFiles + makeBinaryWrapper pkg-config ]; @@ -47,6 +50,10 @@ rustPlatform.buildRustPackage (finalAttrs: { --zsh <($out/bin/codex completion zsh) ''; + postFixup = '' + wrapProgram $out/bin/codex --prefix PATH : ${lib.makeBinPath [ ripgrep ]} + ''; + doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ];