line-awesome: use installFonts (#513559)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user