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";