CotEditor icon

CotEditor 6.2.0

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": "6.2.0",
  "src": {
    "url": "https://github.com/coteditor/CotEditor/releases/download/6.2.0/CotEditor_6.2.0.dmg",
    "sha256": "c6d166734864ae07b1a6e476686206d2eee1077ac3774f99e97a1e27af54bde6"
  },
  "installPhase": [
    "mkdir -p \"$out/Applications/CotEditor.app\" && cp -r \"CotEditor.app\" \"$out/Applications\"",
    "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/"
  }
}