diff --git a/pkgs/by-name/co/codex-acp/package.nix b/pkgs/by-name/co/codex-acp/package.nix new file mode 100644 index 000000000000..8e851648d786 --- /dev/null +++ b/pkgs/by-name/co/codex-acp/package.nix @@ -0,0 +1,41 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + pkg-config, + openssl, +}: +rustPlatform.buildRustPackage rec { + pname = "codex-acp"; + version = "0.3.14"; + + src = fetchFromGitHub { + owner = "zed-industries"; + repo = "codex-acp"; + tag = "v${version}"; + hash = "sha256-tbAR5U02SSbceb0z8hkjMS5W78BVbX3mSSMUv3oysG4="; + }; + + cargoHash = "sha256-7N0S8vnG/QzkGHJG7BGQfUSVf0kXxv0tjTaJPkTojPk="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + openssl + ]; + + doCheck = false; + + meta = with lib; { + description = "An ACP-compatible coding agent powered by Codex"; + homepage = "https://github.com/zed-industries/codex-acp"; + changelog = "https://github.com/zed-industries/codex-acp/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ tlvince ]; + platforms = platforms.unix; + sourceProvenance = with sourceTypes; [ fromSource ]; + mainProgram = "codex-acp"; + }; +}