From 361386a37de1421378d7c22e712f61c651f778a2 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sun, 26 Apr 2026 04:19:59 +0200 Subject: [PATCH] line-awesome: use installFonts --- pkgs/by-name/li/line-awesome/package.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/li/line-awesome/package.nix b/pkgs/by-name/li/line-awesome/package.nix index 1ad61941fdf0..59e4177d0a40 100644 --- a/pkgs/by-name/li/line-awesome/package.nix +++ b/pkgs/by-name/li/line-awesome/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + installFonts, unzip, }: @@ -14,18 +15,17 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "07qkz8s1wjh5xwqlq1b4lpihr1zah3kh6bnqvfwvncld8l9wjqfk"; }; - nativeBuildInputs = [ unzip ]; - sourceRoot = "${finalAttrs.version}/fonts"; - installPhase = '' - mkdir -p $out/share/fonts/truetype - mkdir -p $out/share/fonts/woff - mkdir -p $out/share/fonts/woff2 - cp *.ttf $out/share/fonts/truetype - cp *.woff $out/share/fonts/woff - cp *.woff2 $out/share/fonts/woff2 - ''; + outputs = [ + "out" + "webfont" + ]; + + nativeBuildInputs = [ + unzip + installFonts + ]; meta = { description = "Replace Font Awesome with modern line icons";