diff --git a/README.md b/README.md index 93093e9..86d2b8d 100644 --- a/README.md +++ b/README.md @@ -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/Ghostty--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/Ghostty--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. diff --git a/flake.nix b/flake.nix index f5a49ea..1245428 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ];