update to 1.3.0

This commit is contained in:
Emil Lerch 2026-03-10 07:45:05 -07:00
parent 5031a2eab7
commit 1b4a5ef7c1
Signed by: lobo
GPG key ID: A7B62D657EF764F8
2 changed files with 25 additions and 4 deletions

View file

@ -5,3 +5,24 @@ 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.

View file

@ -8,8 +8,8 @@
outputs = { self, nixpkgs }:
let
# actual versions
upstreamVersion = "1.2.2";
appimageVersion = "v1.2.2";
upstreamVersion = "1.3.0";
appimageVersion = "v1.3.0";
# tip is harder to get to, and looks like this:
# upstreamVersion = "1.1.4-main+b58a761";
@ -34,9 +34,9 @@
# "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}";
hash = if system == "x86_64-linux" then
"sha256-9FqakNv4p9HTvYv8ed1AQapRolCHfpk1RhmaC2Jwwqk="
"sha256-+SSYIGNmkN1HR7zX6ysILUGhweY6aVanoTDEAeldIr8="
else
"sha256-0LoDwLDALY1CriTMs63Eln74nGwuQzWo2A1IYGoMEn4=";
"sha256-S+ojUZxmNvJaAFcGOXLRO18wPkUKiY45tQBX0bEEPIE=";
};
nativeBuildInputs = [ pkgs.makeWrapper ];