diff --git a/nix/overlays/ghostty-dev.nix b/nix/overlays/ghostty-dev.nix index 599c6542..153bf5d9 100644 --- a/nix/overlays/ghostty-dev.nix +++ b/nix/overlays/ghostty-dev.nix @@ -1,7 +1,20 @@ let sources = import ../../npins; in -final: prev: { +final: prev: +let + inherit (final) lib; +in +{ # Dev version of ghostty, "tip" - ghostty = sources.ghostty-dev.asFlake.packages.${final.stdenv.hostPlatform.system}.default; + ghostty = + let + shortRev = lib.substring 0 8 sources.ghostty-dev.revision; + in + # NOTE: + # ghostty-dev internally builds a derivation used as a cache. + # Overriding the pname would cause cash mismatch. + sources.ghostty-dev.asFlake.packages.${final.stdenv.hostPlatform.system}.default.override { + revision = shortRev; + }; }