CotEditor icon

CotEditor 5.0.4

Plain-text editor for web pages, program source codes and more

Installation

System wide:

{
  environment.systemPackages = with nix-casks.packages.${system}; [
    coteditor # CotEditor
  ];
}

Home Manager:

{
  home.packages = with nix-casks.packages.${system}; [
    coteditor # CotEditor
  ];
}

Package Definition

{
  "pname": "coteditor",
  "version": "5.0.4",
  "src": {
    "url": "https://github.com/coteditor/CotEditor/releases/download/5.0.4/CotEditor_5.0.4.dmg",
    "sha256": "4f38f45aab94fd8415170e0d67dd64f8ed9e0a7a71e97010fb969eebcbe1db8f"
  },
  "installPhase": [
    "mkdir -p \"$out/Applications\" && cp -r \"CotEditor.app\" \"$out/Applications/CotEditor.app\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/CotEditor.app/Contents/SharedSupport/bin/cot\" \"$out/bin/cot\""
  ],
  "meta": {
    "description": "Plain-text editor for web pages, program source codes and more",
    "homepage": "https://coteditor.com/"
  }
}