drafting-mono: use installFonts hook

This commit is contained in:
Sandesh
2026-06-03 09:41:24 +05:30
parent 5c67f42faa
commit a1ccf58e34
+8 -8
View File
@@ -2,11 +2,18 @@
lib,
stdenvNoCC,
fetchFromGitHub,
installFonts,
}:
stdenvNoCC.mkDerivation {
pname = "drafting-mono";
version = "1.1-unstable-2024-06-04";
outputs = [
"out"
"webfont"
];
src = fetchFromGitHub {
owner = "indestructible-type";
repo = "Drafting";
@@ -14,14 +21,7 @@ stdenvNoCC.mkDerivation {
hash = "sha256-J64mmDOzTV4MRuZO3MB2SSX5agCRjLDjXAPXuDfdlOM=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
cp fonts/*/*.otf $out/share/fonts/truetype
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
homepage = "https://indestructibletype.com/Drafting/";