mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
geist-font: use installFonts hook
This commit is contained in:
parent
40992269a9
commit
a6b0c2bc78
1 changed files with 6 additions and 6 deletions
|
|
@ -2,6 +2,7 @@
|
|||
lib,
|
||||
stdenvNoCC,
|
||||
fetchzip,
|
||||
installFonts,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
|
|
@ -17,13 +18,12 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
|||
|
||||
sourceRoot = ".";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
outputs = [
|
||||
"out"
|
||||
"webfont"
|
||||
];
|
||||
|
||||
install -D source/fonts/{Geist,GeistMono}/otf/*.otf -t $out/share/fonts/opentype
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
nativeBuildInputs = [ installFonts ];
|
||||
|
||||
meta = {
|
||||
description = "Font family created by Vercel in collaboration with Basement Studio";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue