geist-font: 1.1.0 -> 1.4.01

This commit is contained in:
Guanran Wang 2025-03-16 17:42:54 +08:00
parent e008b6dcda
commit 3bbaf4b0b8
No known key found for this signature in database
GPG key ID: 91F97D9ED12639CF

View file

@ -4,22 +4,22 @@
fetchzip,
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "geist-font";
version = "1.1.0";
version = "1.4.01";
srcs = [
(fetchzip {
name = "geist-mono";
url = "https://github.com/vercel/geist-font/releases/download/${version}/Geist.Mono.zip";
url = "https://github.com/vercel/geist-font/releases/download/${finalAttrs.version}/GeistMono-${finalAttrs.version}.zip";
stripRoot = false;
hash = "sha256-8I4O2+bJAlUiDIhbyXzAcwXP5qpmHoh4IfrFio7IZN8=";
hash = "sha256-NVPSG2Flm78X5+KXUqlTiGrquD/FGuI1C3PFcIqdyl8=";
})
(fetchzip {
name = "geist-sans";
url = "https://github.com/vercel/geist-font/releases/download/${version}/Geist.zip";
url = "https://github.com/vercel/geist-font/releases/download/${finalAttrs.version}/Geist-v${finalAttrs.version}.zip";
stripRoot = false;
hash = "sha256-nSN+Ql5hTd230w/u6VZyAZaPtFSaHGmMc6T1fgGTCME=";
hash = "sha256-r3Ix+UhxL/UosCLsWl52N55D+rGonQK9TIRfu4hGiwE=";
})
];
@ -28,7 +28,7 @@ stdenvNoCC.mkDerivation rec {
installPhase = ''
runHook preInstall
install -Dm444 geist-{mono,sans}/*/*.otf -t $out/share/fonts/opentype
install -D geist-{mono,sans}/*/otf/*.otf -t $out/share/fonts/opentype
runHook postInstall
'';
@ -41,4 +41,4 @@ stdenvNoCC.mkDerivation rec {
platforms = lib.platforms.all;
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
};
}
})