djot-js: init at 0.2.3

https://github.com/jgm/djot.js
This commit is contained in:
figsoda 2023-06-05 13:42:15 -04:00
parent 573b91a20d
commit cc20801002
3 changed files with 5598 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
, installShellFiles
}:
buildNpmPackage rec {
pname = "djot-js";
version = "0.2.3";
src = fetchFromGitHub {
owner = "jgm";
repo = "djot.js";
rev = "@djot/djot@${version}";
hash = "sha256-W/ZQXJXvFEIgj5PeI+jvw4nIkNP4qa1NyQCOv0unIuA=";
};
npmDepsHash = "sha256-WOsStvm7UC2Jnb803mHoJxDUs1I8dDT7HRPdpIXQne8=";
nativeBuildInputs = [
installShellFiles
];
postPatch = ''
ln -s ${./package-lock.json} package-lock.json
'';
postInstall = ''
installManPage doc/djot.1
'';
meta = with lib; {
description = "JavaScript implementation of djot";
homepage = "https://github.com/jgm/djot.js";
changelog = "https://github.com/jgm/djot.js/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "djot";
};
}

5556
pkgs/tools/text/djot-js/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4695,6 +4695,8 @@ with pkgs;
gst-plugins-good = gst_all_1.gst-plugins-good.override { gtkSupport = true; }; gst-plugins-good = gst_all_1.gst-plugins-good.override { gtkSupport = true; };
}; };
djot-js = callPackage ../tools/text/djot-js { };
djv = callPackage ../applications/graphics/djv { }; djv = callPackage ../applications/graphics/djv { };
dnschef = python3Packages.callPackage ../tools/networking/dnschef { }; dnschef = python3Packages.callPackage ../tools/networking/dnschef { };