mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
overlays/ghostty-dev: patch version when using npins
This commit is contained in:
parent
643d736942
commit
9c6bfa1058
1 changed files with 15 additions and 2 deletions
|
|
@ -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 cache 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