CotEditor icon

CotEditor 5.0.7

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.7",
  "src": {
    "url": "https://github.com/coteditor/CotEditor/releases/download/5.0.7/CotEditor_5.0.7.dmg",
    "sha256": "034eff48056be4c70681bf642d8c201f5214ab54217b027f4c3a64797a837d85"
  },
  "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/"
  }
}