diff options
author | polwex <polwex@sortug.com> | 2025-07-27 04:21:58 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-07-27 04:21:58 +0700 |
commit | 9dc29832c4fc17cd93f6eca6c0556277690a0061 (patch) | |
tree | f4d43d7ab1f8c8762c67ce58693f414b16a1295f /derivations/codex/default.nix | |
parent | 2339fba37290774336fa517a417330e3ff788ba5 (diff) |
mnew
Diffstat (limited to 'derivations/codex/default.nix')
-rw-r--r-- | derivations/codex/default.nix | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/derivations/codex/default.nix b/derivations/codex/default.nix deleted file mode 100644 index 5a0f366..0000000 --- a/derivations/codex/default.nix +++ /dev/null @@ -1,63 +0,0 @@ -{ - lib, - rustPlatform, - fetchFromGitHub, - nix-update-script, - pkg-config, - openssl, - versionCheckHook, -}: -rustPlatform.buildRustPackage (finalAttrs: { - pname = "codex"; - version = "0.7.0"; - - src = fetchFromGitHub { - owner = "openai"; - repo = "codex"; - rev = "f14b5adabf5db34864c44c1ffc6c566b018fe0cc"; - # tag = "rust-v${finalAttrs.version}"; - hash = "sha256-rRe0JFEO5ixxrZYDL8kxXDOH0n7lqabkXNNaSlNnQDg="; - }; - - sourceRoot = "${finalAttrs.src.name}/codex-rs"; - - useFetchCargoVendor = true; - cargoHash = "sha256-QIZ3V4NUo1VxJN3cwdQf3S0zwePnwdKKfch0jlIJacU="; - - nativeBuildInputs = [ - pkg-config - ]; - buildInputs = [ - openssl - ]; - - checkFlags = [ - "--skip=keeps_previous_response_id_between_tasks" # Requires network access - "--skip=retries_on_early_close" # Requires network access - ]; - - doInstallCheck = true; - nativeInstallCheckInputs = [versionCheckHook]; - - passthru = { - updateScript = nix-update-script { - extraArgs = [ - "--version-regex" - "^rust-v(\\d+\\.\\d+\\.\\d+)$" - ]; - }; - }; - - meta = { - description = "Lightweight coding agent that runs in your terminal"; - homepage = "https://github.com/openai/codex"; - changelog = "https://raw.githubusercontent.com/openai/codex/refs/tags/rust-v${finalAttrs.version}/CHANGELOG.md"; - license = lib.licenses.asl20; - mainProgram = "codex"; - maintainers = with lib.maintainers; [ - malo - delafthi - ]; - platforms = lib.platforms.unix; - }; -}) |