Merge pull request #323288 from pyrox0/lv-font-conv-init

lv_font_conv: migrate out of nodePackages
This commit is contained in:
Aleksana 2024-07-04 12:23:13 +08:00 committed by GitHub
commit a9873dcafc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 35 additions and 19 deletions

View File

@ -0,0 +1,34 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage rec {
pname = "lv_font_conv";
version = "1.5.3";
src = fetchFromGitHub {
owner = "lvgl";
repo = "lv_font_conv";
rev = version;
hash = "sha256-tm6xPOW0pOO02M10O1H7ww+yXWq/DJtbDmlfrJ6Lp4Y=";
};
npmDepsHash = "sha256-nNMcOL3uu77e4qLoWGhtBgNQXxeEU+kUuKAc25a8fUc=";
preBuild = ''
patchShebangs support/build_web.js
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Converts TTF/WOFF fonts to compact bitmap format";
mainProgram = "lv_font_conv";
homepage = " https://lvgl.io/tools/fontconverter";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
}

View File

@ -112,6 +112,7 @@ mapAliases {
inherit (pkgs) javascript-typescript-langserver; # added 2023-08-19
karma = pkgs.karma-runner; # added 2023-07-29
leetcode-cli = vsc-leetcode-cli; # added 2023-08-31
inherit (pkgs) lv_font_conv; # added 2024-06-28
manta = pkgs.node-manta; # Added 2023-05-06
inherit (pkgs) markdown-link-check; # added 2024-06-28
markdownlint-cli = pkgs.markdownlint-cli; # added 2023-07-29

View File

@ -148,7 +148,6 @@
, "localtunnel"
, "lodash"
, "lua-fmt"
, "lv_font_conv"
, "madoko"
, "mastodon-bot"
, "mathjax"

View File

@ -80762,24 +80762,6 @@ in
bypassCache = true;
reconstructLock = true;
};
lv_font_conv = nodeEnv.buildNodePackage {
name = "lv_font_conv";
packageName = "lv_font_conv";
version = "1.5.3";
src = fetchurl {
url = "https://registry.npmjs.org/lv_font_conv/-/lv_font_conv-1.5.3.tgz";
sha512 = "0xJQThBOw2iptFccSXrKDIUTQAwr/2zhKjCI1lATIRgZo8uvYRTmenKafW9yTw6G0y5AyW00tqGpUtYuTuBIbQ==";
};
buildInputs = globalBuildInputs;
meta = {
description = "Rasterize vector fonts for embedded use. Supports subsettings & merge.";
homepage = "https://github.com/lvgl/lv_font_conv#readme";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
madoko = nodeEnv.buildNodePackage {
name = "madoko";
packageName = "madoko";