From ee040092135c58b68078dbe16a000530147d966f Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Wed, 17 Sep 2025 12:14:44 -0700 Subject: [PATCH] update ghostty to temp fix version of ghostty appimage 1.2.0 --- flake.lock | 6 +++--- flake.nix | 22 ++++++++++++++++++---- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index c798d62..2d4d345 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1738142207, - "narHash": "sha256-NGqpVVxNAHwIicXpgaVqJEJWeyqzoQJ9oc8lnK9+WC4=", + "lastModified": 1757745802, + "narHash": "sha256-hLEO2TPj55KcUFUU1vgtHE9UEIOjRcH/4QbmfHNF820=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9d3ae807ebd2981d593cddd0080856873139aa40", + "rev": "c23193b943c6c689d70ee98ce3128239ed9e32d1", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index a92e37d..68e5dd6 100644 --- a/flake.nix +++ b/flake.nix @@ -7,8 +7,13 @@ outputs = { self, nixpkgs }: let - upstreamVersion = "1.1.0"; - appimageVersion = "v1.1.0+1"; + # actual versions + upstreamVersion = "1.2.0"; + appimageVersion = "v1.2.0"; + + # tip is harder to get to, and looks like this: + # upstreamVersion = "1.1.4-main+b58a761"; + # appimageVersion = "tip"; exename = "ghostty"; mkGhostty = system: @@ -21,8 +26,17 @@ version = appimageVersion; src = pkgs.fetchurl { - url = "https://github.com/psadi/ghostty-appimage/releases/download/${appimageVersion}/${appimagename}"; - hash = if system == "x86_64-linux" then "sha256-B7YH8hfsPzpjdXcUTfo3dxj8xNFL8LZnHjEzinnf7M0=" else "sha256-Obn6PfQIsHQn6y4M20tqvWfw22TvoT4jEo181KGzEQs="; + # temporary fix for nvidia proprietary drivers + # See https://github.com/pkgforge-dev/ghostty-appimage/pull/95 + url = if system == "x86_64-linux" then + "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}"; + hash = if system == "x86_64-linux" then + "sha256-E78tVBzSfoc+xZ2HKy0gAmmCwSxI+idIvZrg9wsJ4rc=" + else + "sha256-3j7yGUCkvGErlYTS6njkuoSaqgKtFvNZ4/RWlx3B7Fc="; }; nativeBuildInputs = [ pkgs.makeWrapper ];