biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / text / djot-js / default.nix
blob656d7d0f6ba8c3aeb5123531be8730b384d2fc2a
1 { lib
2 , buildNpmPackage
3 , fetchFromGitHub
4 , installShellFiles
5 }:
7 buildNpmPackage rec {
8   pname = "djot-js";
9   version = "0.3.1";
11   src = fetchFromGitHub {
12     owner = "jgm";
13     repo = "djot.js";
14     rev = "@djot/djot@${version}";
15     hash = "sha256-dQfjI+8cKqn4qLT9eUKfCP++BFCWQ/MmrlQNVRNCFuU=";
16   };
18   npmDepsHash = "sha256-FjrjwhVv2WRjbEga9w37lwz7KYgTTHGsoqt496Uq/0c=";
20   nativeBuildInputs = [
21     installShellFiles
22   ];
24   postInstall = ''
25     installManPage doc/djot.1
26   '';
28   meta = with lib; {
29     description = "JavaScript implementation of djot";
30     homepage = "https://github.com/jgm/djot.js";
31     changelog = "https://github.com/jgm/djot.js/blob/${src.rev}/CHANGELOG.md";
32     license = licenses.mit;
33     maintainers = with maintainers; [ figsoda ];
34     mainProgram = "djot";
35   };