Skip to content

About

Canonical OpenAI Codex apply_patch CLI packaged as a Nix flake

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

codex-applypatch

apply_patch as a normal executable for Linux and macOS.

This flake builds the canonical codex-apply-patch package from the OpenAI Codex source already pinned and hashed by nixpkgs. It does not approximate the patch grammar with patch, sed, or a compatibility parser; the resulting binary is the same standalone implementation Codex uses.

Run

nix run github:anghel4d/codex-applypatch -- '*** Begin Patch
*** Add File: hello.txt
+hello
*** End Patch'

The executable also accepts a patch on standard input:

apply_patch <<'PATCH'
*** Begin Patch
*** Update File: hello.txt
@@
-hello
+hello, world
*** End Patch
PATCH

Install

Add the flake as an input and install inputs.codex-applypatch.packages.${pkgs.system}.default, or install it directly:

nix profile install github:anghel4d/codex-applypatch

nix flake check builds the executable and verifies add, update, move, and delete semantics.

About

Canonical OpenAI Codex apply_patch CLI packaged as a Nix flake

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages