Ghostty icon

Ghostty 1.0.0

Terminal emulator that uses platform-native UI and GPU acceleration

Installation

System wide:

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

Home Manager:

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

Package Definition

{
  "pname": "ghostty",
  "version": "1.0.0",
  "src": {
    "url": "https://release.files.ghostty.org/1.0.0/Ghostty.dmg",
    "sha256": "091f7a2b3f4160a16d7d52b2822124bb9d5714993815f62a7d70027984372652"
  },
  "installPhase": [
    "mkdir -p \"$out/Applications\" && cp -r \"Ghostty.app\" \"$out/Applications/Ghostty.app\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/Ghostty.app/Contents/MacOS/ghostty\" \"$out/bin/ghostty\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/Ghostty.app/Contents/Resources/fish/vendor_completions.d/ghostty.fish\" \"$out/bin/$HOMEBREW_PREFIX/share/fish/vendor_completions.d/ghostty.fish\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/Ghostty.app/Contents/Resources/terminfo/67/ghostty\" \"$out/bin/~/.terminfo/67/ghostty\"",
    "mkdir -p \"$out/bin\" && ln -s \"$out/Applications/Ghostty.app/Contents/Resources/terminfo/78/xterm-ghostty\" \"$out/bin/~/.terminfo/78/xterm-ghostty\"",
    "mkdir -p \"$out/usr/local/share/man/man1\" && ln -s \"$out/Applications/Ghostty.app/Contents/Resources/man/man1/ghostty.1\" \"$out/usr/local/share/man/man1/ghostty.1\"",
    "mkdir -p \"$out/usr/local/share/man/man5\" && ln -s \"$out/Applications/Ghostty.app/Contents/Resources/man/man5/ghostty.5\" \"$out/usr/local/share/man/man5/ghostty.5\""
  ],
  "meta": {
    "description": "Terminal emulator that uses platform-native UI and GPU acceleration",
    "homepage": "https://ghostty.org/"
  }
}