28 lines
1 KiB
Markdown
28 lines
1 KiB
Markdown
Nix flake for Ghostty AppImage
|
|
==============================
|
|
|
|
Uses [Ghostty app image](https://github.com/psadi/ghostty-appimage)
|
|
|
|
I do not believe this flake will work on NixOS proper. Appimages use a wrapper
|
|
there that do not work outside of NixOS.
|
|
|
|
Updating the flake for new AppImage releases
|
|
---------------------------------------------
|
|
|
|
1. Update `upstreamVersion` and `appimageVersion` in `flake.nix` (e.g. `"1.3.0"` and `"v1.3.0"`).
|
|
|
|
2. Get the new SRI hashes for each architecture:
|
|
|
|
```bash
|
|
# x86_64
|
|
nix-prefetch-url --type sha256 \
|
|
"https://github.com/psadi/ghostty-appimage/releases/download/v<VERSION>/Ghostty-<VERSION>-x86_64.AppImage" \
|
|
| xargs nix hash convert --hash-algo sha256 --to sri
|
|
|
|
# aarch64
|
|
nix-prefetch-url --type sha256 \
|
|
"https://github.com/psadi/ghostty-appimage/releases/download/v<VERSION>/Ghostty-<VERSION>-aarch64.AppImage" \
|
|
| xargs nix hash convert --hash-algo sha256 --to sri
|
|
```
|
|
|
|
3. Replace the corresponding `hash` values in `flake.nix` with the output from the commands above.
|