depot/third_party/nixpkgs/pkgs/tools/text/djot-js/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

36 lines
799 B
Nix

{ lib
, buildNpmPackage
, fetchFromGitHub
, installShellFiles
}:
buildNpmPackage rec {
pname = "djot-js";
version = "0.3.1";
src = fetchFromGitHub {
owner = "jgm";
repo = "djot.js";
rev = "@djot/djot@${version}";
hash = "sha256-dQfjI+8cKqn4qLT9eUKfCP++BFCWQ/MmrlQNVRNCFuU=";
};
npmDepsHash = "sha256-FjrjwhVv2WRjbEga9w37lwz7KYgTTHGsoqt496Uq/0c=";
nativeBuildInputs = [
installShellFiles
];
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";
};
}