mystmd: init at 1.1.22
This commit is contained in:
parent
070b5326de
commit
9d57e6fcee
1 changed files with 34 additions and 0 deletions
34
pkgs/by-name/my/mystmd/package.nix
Normal file
34
pkgs/by-name/my/mystmd/package.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ lib, buildNpmPackage, fetchFromGitHub }:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "mystmd";
|
||||
version = "1.1.22";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "executablebooks";
|
||||
repo = "mystmd";
|
||||
rev = "mystmd@${version}";
|
||||
hash = "sha256-jx/UCC/Cl5kqAbMzeikTmrx9xWS02OCp3rn0pvtIAPY=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-1qQ19iB7N+KvO1uUdEMU1iN91FMQs4wzfTCdv6wfn30=";
|
||||
|
||||
dontNpmInstall = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D packages/mystmd/dist/myst.cjs $out/bin/myst
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command line tools for working with MyST Markdown";
|
||||
homepage = "https://github.com/executablebooks/mystmd";
|
||||
changelog = "https://github.com/executablebooks/mystmd/blob/${src.rev}/packages/myst-cli/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
mainProgram = "myst";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue