From fa905e6a7245802fb54f3ebe02c31293d7ad3a49 Mon Sep 17 00:00:00 2001 From: Jhony Angulo Date: Tue, 21 Jul 2026 15:25:17 -0500 Subject: [PATCH] codex: 0.144.4 -> 0.145.0 Remove obsolete WebRTC workaround --- pkgs/by-name/co/codex/package.nix | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/co/codex/package.nix b/pkgs/by-name/co/codex/package.nix index ad87fcd174e5..6b7f883be89f 100644 --- a/pkgs/by-name/co/codex/package.nix +++ b/pkgs/by-name/co/codex/package.nix @@ -14,7 +14,6 @@ librusty_v8 ? callPackage ./librusty_v8.nix { inherit (callPackage ./fetchers.nix { }) fetchLibrustyV8; }, - livekit-libwebrtc, lld, makeBinaryWrapper, nix-update-script, @@ -26,18 +25,18 @@ }: rustPlatform.buildRustPackage (finalAttrs: { pname = "codex"; - version = "0.144.4"; + version = "0.145.0"; src = fetchFromGitHub { owner = "openai"; repo = "codex"; tag = "rust-v${finalAttrs.version}"; - hash = "sha256-NmYZxjNFPkRWN4rw+eeka10pJt6/oU3ZoLXBxj3dPRU="; + hash = "sha256-/r4mBoJhHB1v5NTA4Hk565/D5B0deYJf9xJW330hyf0="; }; sourceRoot = "${finalAttrs.src.name}/codex-rs"; - cargoHash = "sha256-S4dsZXfmKvJItL2XYKyxfhqdCMATEG6oPjrtVRwkuYc="; + cargoHash = "sha256-t9IMRK9R+Z67ThEcgBI0HQU0E4aJHcOjKp22RFclh9U="; __structuredAttrs = true; @@ -57,12 +56,6 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; postPatch = '' - # webrtc-sys asks rustc to link libwebrtc statically by default, - # but nixpkgs provides libwebrtc as a shared library. - # use LK_CUSTOM_WEBRTC to point to the packaged library and adjust linking - # to use the shared library instead - substituteInPlace $cargoDepsCopy/*/webrtc-sys-*/build.rs \ - --replace-fail "cargo:rustc-link-lib=static=webrtc" "cargo:rustc-link-lib=dylib=webrtc" substituteInPlace Cargo.toml \ --replace-fail 'lto = "thin"' "" \ --replace-fail 'codegen-units = 4' "" @@ -91,7 +84,6 @@ rustPlatform.buildRustPackage (finalAttrs: { # character-conversion warning-as-error disabled. env = { LIBCLANG_PATH = "${lib.getLib libclang}/lib"; - LK_CUSTOM_WEBRTC = lib.getDev livekit-libwebrtc; NIX_CFLAGS_COMPILE = toString ( lib.optionals stdenv.cc.isGNU [ "-Wno-error=stringop-overflow"