From ac4c1c99b7f3d28be54a52b32d147bd80e41d1b3 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sun, 26 Apr 2026 06:47:23 +0200 Subject: [PATCH] lilex: use installFonts c --- pkgs/by-name/li/lilex/package.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/li/lilex/package.nix b/pkgs/by-name/li/lilex/package.nix index 138d5e591d54..db6a881315f7 100644 --- a/pkgs/by-name/li/lilex/package.nix +++ b/pkgs/by-name/li/lilex/package.nix @@ -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";