ghostty: update themes dependency, fix build

See ghostty-org/ghostty#9606, #467368 

Since a 1.2.4 release is somewhat unlikely, with the 1.3.0 release
scheduled in 6–7 weeks, let's patch this now so that people who don't
use `cache.nixos.org` (or mirrors thereof) aren't stuck with a broken
build or being forced to use the flake.
This commit is contained in:
Leah Amelia Chen
2026-01-22 00:57:43 +08:00
parent c18ff518ac
commit 0a6cc48ca9
2 changed files with 14 additions and 3 deletions
+3 -3
View File
@@ -169,11 +169,11 @@ linkFarm name [
};
}
{
name = "N-V-__8AALIsAwDyo88G5mGJGN2lSVmmFMx4YePfUvp_2o3Y";
name = "N-V-__8AAIdIAwDt5PxH-cwCxEcTfw4jBV8sR6fZ_XLh-cR7";
path = fetchZigArtifact {
name = "iterm2_themes";
url = "https://github.com/mbadolato/iTerm2-Color-Schemes/releases/download/release-20251002-142451-4a5043e/ghostty-themes.tgz";
hash = "sha256-GsEWVt4wMzp6+7N5I+QVuhCVJ70cFrdADwUds59AKnw=";
url = "https://github.com/mbadolato/iTerm2-Color-Schemes/releases/download/release-20260112-150707-28c8f5b/ghostty-themes.tgz";
hash = "sha256-NIqF12KqXhIrP+LyBtg6WtkHxNUdWOyziAdq8S45RrU=";
};
}
{
+11
View File
@@ -5,6 +5,7 @@
bzip2,
callPackage,
fetchFromGitHub,
fetchpatch2,
fontconfig,
freetype,
glib,
@@ -48,6 +49,16 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-0tmLOJCrrEnVc/ZCp/e646DTddXjv249QcSwkaukL30=";
};
# Replace the defunct iTerm2 themes dependency with a newer version
# Remove when 1.2.4 or 1.3.0 is released
patches = [
(fetchpatch2 {
name = "fix-iterm2-themes-ref.patch";
url = "https://github.com/pluiedev/ghostty/commit/dc51adc52661bbcacebe5e70b62b5041e3ee56a5.patch";
hash = "sha256-0DrP4zN26pjeBawoi9U8y6VM/NlfhPmo27Iy5OsMj0s=";
})
];
deps = callPackage ./deps.nix {
name = "${finalAttrs.pname}-cache-${finalAttrs.version}";
};