ghostty 1.4
This commit is contained in:
parent
1b4a5ef7c1
commit
18a6f1402f
2 changed files with 9 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
Nix flake for Ghostty AppImage
|
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
|
I do not believe this flake will work on NixOS proper. Appimages use a wrapper
|
||||||
there that do not work outside of NixOS.
|
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
|
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:
|
2. Get the new SRI hashes for each architecture:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# x86_64
|
# x86_64
|
||||||
nix-prefetch-url --type sha256 \
|
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
|
| xargs nix hash convert --hash-algo sha256 --to sri
|
||||||
|
|
||||||
# aarch64
|
# aarch64
|
||||||
nix-prefetch-url --type sha256 \
|
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
|
| xargs nix hash convert --hash-algo sha256 --to sri
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
10
flake.nix
10
flake.nix
|
|
@ -8,8 +8,8 @@
|
||||||
outputs = { self, nixpkgs }:
|
outputs = { self, nixpkgs }:
|
||||||
let
|
let
|
||||||
# actual versions
|
# actual versions
|
||||||
upstreamVersion = "1.3.0";
|
upstreamVersion = "1.4.0";
|
||||||
appimageVersion = "v1.3.0";
|
appimageVersion = "v1.4.0";
|
||||||
|
|
||||||
# tip is harder to get to, and looks like this:
|
# tip is harder to get to, and looks like this:
|
||||||
# upstreamVersion = "1.1.4-main+b58a761";
|
# 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"
|
# "https://git.lerch.org/api/packages/lobo/generic/ghostty-appimage/1.2.0/Ghostty-1.2.0-x86_64.AppImage"
|
||||||
# else
|
# else
|
||||||
# "https://git.lerch.org/api/packages/lobo/generic/ghostty-appimage/1.2.0/Ghostty-1.2.0-aarch64.AppImage";
|
# "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
|
hash = if system == "x86_64-linux" then
|
||||||
"sha256-+SSYIGNmkN1HR7zX6ysILUGhweY6aVanoTDEAeldIr8="
|
"sha256-UK1Pi1SgHn1BQm59Ev+unIiqHFFqwUB1XivKWW4dKuY="
|
||||||
else
|
else
|
||||||
"sha256-S+ojUZxmNvJaAFcGOXLRO18wPkUKiY45tQBX0bEEPIE=";
|
"sha256-ky4hxnHCFeYUBjMCestOhwXO8zd9M1ICIRwy2Itb9QY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue