Unverified Commit 52325756 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

ghostty: update themes dependency, fix build (#482348)

parents 25fb4376 0a6cc48c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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}";
  };