···
rustPlatform.buildRustPackage (finalAttrs: {
tag = "rust-v${finalAttrs.version}";
23
-
hash = "sha256-qpYkD8fpnlTJ7RLAQrfswLFc58l/KY0x8NgGl/msG/I=";
23
+
hash = "sha256-s7gN1fsk/PRiVVzlrtmAUd2Vu8hhKtlCesLOVrzJ/58=";
sourceRoot = "${finalAttrs.src.name}/codex-rs";
28
-
cargoHash = "sha256-oPWkxEMnffDZ7cmjWmmYGurYnHn4vYu64BhG7NhrxhE=";
28
+
cargoHash = "sha256-zgmiWyWB08v1WQVFzxpC/LGwF+XXbs8iW1d7i9Iw0Q4=";
···
37
-
python3 # Required because of codex-rs/login/src/login_with_chatgpt.py
37
+
# Required because of codex-rs/login/src/login_with_chatgpt.py
nativeCheckInputs = [ gitMinimal ];
__darwinAllowLocalNetworking = true;
44
-
CODEX_SANDBOX = "seatbelt"; # Disables sandbox tests which want to access /usr/bin/touch
45
-
CODEX_SANDBOX_NETWORK_DISABLED = 1; # Skips tests that require networking
45
+
# Disables sandbox tests which want to access /usr/bin/touch
46
+
CODEX_SANDBOX = "seatbelt";
47
+
# Skips tests that require networking
48
+
CODEX_SANDBOX_NETWORK_DISABLED = 1;
48
-
"--skip=shell::tests::test_run_with_profile_escaping_and_execution" # Wants to access /bin/zsh
49
-
"--skip=includes_base_instructions_override_in_request" # Fails with 'stream ended unexpectedly: InternalAgentDied'
50
-
"--skip=includes_user_instructions_message_in_request" # Fails with 'stream ended unexpectedly: InternalAgentDied'
51
-
"--skip=originator_config_override_is_used" # Fails with 'stream ended unexpectedly: InternalAgentDied'
52
-
"--skip=azure_overrides_assign_properties_used_for_responses_url" # Panics
53
-
"--skip=test_conversation_create_and_send_message_ok" # Version 0.0.0 hardcoded
54
-
"--skip=test_send_message_session_not_found" # Version 0.0.0 hardcoded
55
-
"--skip=test_send_message_success" # Version 0.0.0 hardcoded
51
+
# Wants to access /bin/zsh
52
+
"--skip=shell::tests::test_run_with_profile_escaping_and_execution"
53
+
# Fails with 'stream ended unexpectedly: InternalAgentDied'
54
+
"--skip=includes_base_instructions_override_in_request"
55
+
# Fails with 'stream ended unexpectedly: InternalAgentDied'
56
+
"--skip=includes_user_instructions_message_in_request"
57
+
# Fails with 'stream ended unexpectedly: InternalAgentDied'
58
+
"--skip=originator_config_override_is_used"
59
+
# Fails with 'called `Result::unwrap()` on an `Err` value: NotPresent'
60
+
"--skip=azure_overrides_assign_properties_used_for_responses_url"
61
+
# Fails with 'called `Result::unwrap()` on an `Err` value: NotPresent'
62
+
"--skip=env_var_overrides_loaded_auth"
63
+
# Version 0.0.0 hardcoded
64
+
"--skip=test_conversation_create_and_send_message_ok"
65
+
# Version 0.0.0 hardcoded
66
+
"--skip=test_send_message_session_not_found"
67
+
# Version 0.0.0 hardcoded
68
+
"--skip=test_send_message_success"
postInstall = lib.optionalString installShellCompletions ''