ghostty 1.4

This commit is contained in:
Emil Lerch 2026-10-29 23:44:06 -07:00
parent 1b4a5ef7c1
commit 18a6f1402f
Signed by: lobo
GPG key ID: A7B62D657EF764F8
2 changed files with 9 additions and 9 deletions

View file

@ -1,7 +1,7 @@
Nix flake for Ghostty AppImage
==============================
Uses [Ghostty app image](https://github.com/psadi/ghostty-appimage)
Uses [Ghostty app image](https://github.com/pkgforge-dev/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.
@ -9,19 +9,19 @@ 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"`).
1. Update `upstreamVersion` and `appimageVersion` in `flake.nix` (e.g. `"1.4.0"` and `"v1.4.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" \
"https://github.com/pkgforge-dev/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" \
"https://github.com/pkgforge-dev/ghostty-appimage/releases/download/v<VERSION>/Ghostty-<VERSION>-aarch64.AppImage" \
| xargs nix hash convert --hash-algo sha256 --to sri
```

View file

@ -8,8 +8,8 @@
outputs = { self, nixpkgs }:
let
# actual versions
upstreamVersion = "1.3.0";
appimageVersion = "v1.3.0";
upstreamVersion = "1.4.0";
appimageVersion = "v1.4.0";
# tip is harder to get to, and looks like this:
# upstreamVersion = "1.1.4-main+b58a761";
@ -32,11 +32,11 @@
# "https://git.lerch.org/api/packages/lobo/generic/ghostty-appimage/1.2.0/Ghostty-1.2.0-x86_64.AppImage"
# else
# "https://git.lerch.org/api/packages/lobo/generic/ghostty-appimage/1.2.0/Ghostty-1.2.0-aarch64.AppImage";
url = "https://github.com/psadi/ghostty-appimage/releases/download/${appimageVersion}/${appimagename}";
url = "https://github.com/pkgforge-dev/ghostty-appimage/releases/download/${appimageVersion}/${appimagename}";
hash = if system == "x86_64-linux" then
"sha256-+SSYIGNmkN1HR7zX6ysILUGhweY6aVanoTDEAeldIr8="
"sha256-UK1Pi1SgHn1BQm59Ev+unIiqHFFqwUB1XivKWW4dKuY="
else
"sha256-S+ojUZxmNvJaAFcGOXLRO18wPkUKiY45tQBX0bEEPIE=";
"sha256-ky4hxnHCFeYUBjMCestOhwXO8zd9M1ICIRwy2Itb9QY=";
};
nativeBuildInputs = [ pkgs.makeWrapper ];