···
rustPlatform.buildRustPackage (finalAttrs: {
tag = "rust-v${finalAttrs.version}";
+
hash = "sha256-s7gN1fsk/PRiVVzlrtmAUd2Vu8hhKtlCesLOVrzJ/58=";
sourceRoot = "${finalAttrs.src.name}/codex-rs";
+
cargoHash = "sha256-zgmiWyWB08v1WQVFzxpC/LGwF+XXbs8iW1d7i9Iw0Q4=";
···
+
# Required because of codex-rs/login/src/login_with_chatgpt.py
nativeCheckInputs = [ gitMinimal ];
__darwinAllowLocalNetworking = true;
+
# Disables sandbox tests which want to access /usr/bin/touch
+
CODEX_SANDBOX = "seatbelt";
+
# Skips tests that require networking
+
CODEX_SANDBOX_NETWORK_DISABLED = 1;
+
# Wants to access /bin/zsh
+
"--skip=shell::tests::test_run_with_profile_escaping_and_execution"
+
# Fails with 'stream ended unexpectedly: InternalAgentDied'
+
"--skip=includes_base_instructions_override_in_request"
+
# Fails with 'stream ended unexpectedly: InternalAgentDied'
+
"--skip=includes_user_instructions_message_in_request"
+
# Fails with 'stream ended unexpectedly: InternalAgentDied'
+
"--skip=originator_config_override_is_used"
+
# Fails with 'called `Result::unwrap()` on an `Err` value: NotPresent'
+
"--skip=azure_overrides_assign_properties_used_for_responses_url"
+
# Fails with 'called `Result::unwrap()` on an `Err` value: NotPresent'
+
"--skip=env_var_overrides_loaded_auth"
+
# Version 0.0.0 hardcoded
+
"--skip=test_conversation_create_and_send_message_ok"
+
# Version 0.0.0 hardcoded
+
"--skip=test_send_message_session_not_found"
+
# Version 0.0.0 hardcoded
+
"--skip=test_send_message_success"
postInstall = lib.optionalString installShellCompletions ''