lilex: use installFonts

c
This commit is contained in:
Sigmanificient
2026-05-22 00:41:26 +02:00
parent be077cc58b
commit ac4c1c99b7
+10 -7
View File
@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchurl,
installFonts,
unzip,
}:
stdenvNoCC.mkDerivation rec {
@@ -13,7 +14,15 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-NDEO20unSfdy1CuI4+7EpjGFJ+dc7qqWz8VW7jU2b7w=";
};
nativeBuildInputs = [ unzip ];
outputs = [
"out"
"webfont"
];
nativeBuildInputs = [
installFonts
unzip
];
unpackPhase = ''
runHook preUnpack
@@ -21,12 +30,6 @@ stdenvNoCC.mkDerivation rec {
runHook postUnpack
'';
installPhase = ''
runHook preInstall
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} +
runHook postInstall
'';
meta = {
description = "Open source programming font";
homepage = "https://github.com/mishamyrt/Lilex";