From c146780b80d022d05e3617935be05e2d7dda95db Mon Sep 17 00:00:00 2001 From: imcvampire Date: Sun, 24 May 2026 19:01:34 +0300 Subject: [PATCH] cmux: init at 0.64.10 --- pkgs/by-name/cm/cmux/package.nix | 69 ++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 pkgs/by-name/cm/cmux/package.nix diff --git a/pkgs/by-name/cm/cmux/package.nix b/pkgs/by-name/cm/cmux/package.nix new file mode 100644 index 000000000000..a650a3dee942 --- /dev/null +++ b/pkgs/by-name/cm/cmux/package.nix @@ -0,0 +1,69 @@ +{ + lib, + stdenvNoCC, + fetchurl, + _7zz, + makeBinaryWrapper, + nix-update-script, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "cmux"; + version = "0.64.10"; + + __structuredAttrs = true; + strictDeps = true; + + src = fetchurl { + url = "https://github.com/manaflow-ai/cmux/releases/download/v${finalAttrs.version}/cmux-macos.dmg"; + hash = "sha256-+MKcMChZTFiDF482mVIh6mzeyKghDMV9gLA+6BjamXw="; + }; + + # -snld prevents "ERROR: Dangerous symbolic link path was ignored" + # -xr'!*:com.apple.*' avoids extended attributes being extracted as files + # from the APFS image, which would corrupt the .app bundle. + unpackCmd = "7zz x -snld -xr'!*:com.apple.*' $curSrc"; + + nativeBuildInputs = [ + _7zz + makeBinaryWrapper + ]; + + sourceRoot = "."; + + installPhase = '' + runHook preInstall + + mkdir -p $out/Applications + cp -R cmux.app $out/Applications/ + + mkdir -p $out/bin + makeBinaryWrapper \ + "$out/Applications/cmux.app/Contents/MacOS/cmux" \ + "$out/bin/cmux" + + runHook postInstall + ''; + + # Preserve the notarized signature of the bundled binaries and resources. + dontFixup = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Native macOS terminal built on Ghostty, designed for AI coding agents"; + longDescription = '' + cmux is a macOS-native terminal application built on Ghostty that + provides vertical tabs, notification rings, an in-app browser, and + first-class support for AI coding agents such as Claude Code. + It exposes scriptable CLI and socket APIs. + ''; + homepage = "https://cmux.com"; + changelog = "https://github.com/manaflow-ai/cmux/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.gpl3Plus; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + mainProgram = "cmux"; + maintainers = with lib.maintainers; [ imcvampire ]; + platforms = lib.platforms.darwin; + }; +})