aasvg: init at 0.5.2

This commit is contained in:
chillcicada
2026-03-30 11:36:08 +08:00
parent 1aa9bb4b51
commit 2fe27d55ac
+40
View File
@@ -0,0 +1,40 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "aasvg";
version = "0.5.2";
src = fetchFromGitHub {
owner = "martinthomson";
repo = "aasvg";
tag = "v${finalAttrs.version}";
hash = "sha256-Le6ZbJY7ZkqblZx4TkHWIiRKn1foi8jB+rldhu95NQ0=";
};
# the project has no dependencies
preInstall = "mkdir node_modules/";
forceEmptyCache = true;
dontNpmBuild = true;
npmDepsHash = "sha256-FdVXR2Myit3GiA1/VXzHBRSihKAQlh+Zd1gzSMuYi6c=";
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Convert ASCII art diagrams into SVG";
homepage = "https://github.com/martinthomson/aasvg";
platforms = lib.platforms.all;
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ chillcicada ];
mainProgram = "aasvg";
};
})