parent
573b91a20d
commit
cc20801002
40
pkgs/tools/text/djot-js/default.nix
Normal file
40
pkgs/tools/text/djot-js/default.nix
Normal 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
5556
pkgs/tools/text/djot-js/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -4695,6 +4695,8 @@ with pkgs;
|
||||
gst-plugins-good = gst_all_1.gst-plugins-good.override { gtkSupport = true; };
|
||||
};
|
||||
|
||||
djot-js = callPackage ../tools/text/djot-js { };
|
||||
|
||||
djv = callPackage ../applications/graphics/djv { };
|
||||
|
||||
dnschef = python3Packages.callPackage ../tools/networking/dnschef { };
|
||||
|
Loading…
Reference in New Issue
Block a user