lilex: use installFonts
c
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user