lilex: use installFonts (#513590)
This commit is contained in:
@@ -2,30 +2,29 @@
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
installFonts,
|
||||
unzip,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "lilex";
|
||||
version = "2.700";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mishamyrt/Lilex/releases/download/${version}/Lilex.zip";
|
||||
url = "https://github.com/mishamyrt/Lilex/releases/download/${finalAttrs.version}/Lilex.zip";
|
||||
hash = "sha256-NDEO20unSfdy1CuI4+7EpjGFJ+dc7qqWz8VW7jU2b7w=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
sourceRoot = ".";
|
||||
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
unzip $src
|
||||
runHook postUnpack
|
||||
'';
|
||||
outputs = [
|
||||
"out"
|
||||
"webfont"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} +
|
||||
runHook postInstall
|
||||
'';
|
||||
nativeBuildInputs = [
|
||||
installFonts
|
||||
unzip
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Open source programming font";
|
||||
@@ -34,4 +33,4 @@ stdenvNoCC.mkDerivation rec {
|
||||
maintainers = with lib.maintainers; [ redyf ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user