1 { lib, buildNpmPackage, fetchFromGitHub, mystmd, testers, nix-update-script }:
7 src = fetchFromGitHub {
8 owner = "executablebooks";
10 rev = "mystmd@${version}";
11 hash = "sha256-SGjukKIthrCHD5u+QoD37xfw6XmaOCVquveuawBltMI=";
14 npmDepsHash = "sha256-97DOfFADaCZ0hlprRvJvMqhhmpjc4lU0Sw45NTc8IlE=";
16 dontNpmInstall = true;
21 install -D packages/mystmd/dist/myst.cjs $out/bin/myst
27 tests.version = testers.testVersion {
29 version = "v${version}";
31 updateScript = nix-update-script { };
35 description = "Command line tools for working with MyST Markdown";
36 homepage = "https://github.com/executablebooks/mystmd";
37 changelog = "https://github.com/executablebooks/mystmd/blob/${src.rev}/packages/myst-cli/CHANGELOG.md";
38 license = licenses.mit;