blob: 7aa12dc82cff7ccceea7ca04dd65c4dc4f39099a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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";
};
}
|