diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2023-10-25 04:34:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 04:34:48 -0500 |
commit | be5c30bf2c89ccfd6e2d8ebba54c25d7c0c80764 (patch) | |
tree | f9c78482e3ecb4a3f2cbe0aebbe49f7a15053a1d | |
parent | b5a7f1286c5230b8cd5d1d37c6da1ae07e4f1845 (diff) | |
parent | 9d57e6fceee42c84f3183911238f0a06334e7414 (diff) | |
download | nixpkgs-be5c30bf2c89ccfd6e2d8ebba54c25d7c0c80764.tar nixpkgs-be5c30bf2c89ccfd6e2d8ebba54c25d7c0c80764.tar.gz nixpkgs-be5c30bf2c89ccfd6e2d8ebba54c25d7c0c80764.tar.bz2 nixpkgs-be5c30bf2c89ccfd6e2d8ebba54c25d7c0c80764.tar.lz nixpkgs-be5c30bf2c89ccfd6e2d8ebba54c25d7c0c80764.tar.xz nixpkgs-be5c30bf2c89ccfd6e2d8ebba54c25d7c0c80764.tar.zst nixpkgs-be5c30bf2c89ccfd6e2d8ebba54c25d7c0c80764.zip |
Merge pull request #262829 from marsam/add-mystmd
mystmd: init at 1.1.22
-rw-r--r-- | pkgs/by-name/my/mystmd/package.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/by-name/my/mystmd/package.nix b/pkgs/by-name/my/mystmd/package.nix new file mode 100644 index 00000000000..5bf90c7d90c --- /dev/null +++ b/pkgs/by-name/my/mystmd/package.nix @@ -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"; + }; +} |