mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:29:40 +00:00
overlays/ghostty-dev: patch version when using npins
This commit is contained in:
parent
643d736942
commit
6e53451c2f
1 changed files with 15 additions and 2 deletions
|
|
@ -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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue