mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
f5ce587292
Diff: https://github.com/executablebooks/mystmd/compare/mystmd@1.1.36...mystmd@1.1.37 Changelog: https://github.com/executablebooks/mystmd/blob/mystmd@1.1.37/packages/myst-cli/CHANGELOG.md
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ lib, buildNpmPackage, fetchFromGitHub, mystmd, testers, nix-update-script }:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "mystmd";
|
|
version = "1.1.37";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "executablebooks";
|
|
repo = "mystmd";
|
|
rev = "mystmd@${version}";
|
|
hash = "sha256-P4+0oCXQGziYfVUxIZe3j25lO6ho/4BdtqxCv/TTGko=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-ZA9kiMTn+m9Q0C3DBVMiUEq5bfRsXM1VX0qrIH2GAQo=";
|
|
|
|
dontNpmInstall = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D packages/mystmd/dist/myst.cjs $out/bin/myst
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
tests.version = testers.testVersion {
|
|
package = mystmd;
|
|
version = "v${version}";
|
|
};
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|