.files/nix/overlays/ghostty-dev.nix

20 lines
475 B
Nix

let
sources = import ../../npins;
in
final: prev:
let
inherit (final) lib;
in
{
# Dev version of ghostty, "tip"
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 cache mismatch.
sources.ghostty-dev.asFlake.packages.${final.stdenv.hostPlatform.system}.default.override {
revision = shortRev;
};
}