overlays/ghostty-dev: patch version when using npins

This commit is contained in:
Primrose 2026-01-24 00:34:07 +01:00
parent 643d736942
commit 6e53451c2f
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -1,7 +1,20 @@
let let
sources = import ../../npins; sources = import ../../npins;
in in
final: prev: { final: prev:
let
inherit (final) lib;
in
{
# Dev version of ghostty, "tip" # 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;
};
} }