Skip to content

Commit

Permalink
Merge pull request #265148 from dotlambda/mathjax-node-cli-buildNpmPa…
Browse files Browse the repository at this point in the history
…ckage

mathjax-node-cli: use buildNpmPackage
  • Loading branch information
dotlambda authored Nov 9, 2023
2 parents 8e81cc9 + a82f6e8 commit ab5d876
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 207 deletions.
37 changes: 37 additions & 0 deletions pkgs/by-name/ma/mathjax-node-cli/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
, fetchpatch
}:

buildNpmPackage rec {
pname = "mathjax-node-cli";
version = "1.0.1";

src = fetchFromGitHub {
owner = "mathjax";
repo = "mathjax-node-cli";
rev = version;
hash = "sha256-jFSn/Ftm1iNOAmMadHYfy2jm0H/+hP2XCyyNbJqfhkY=";
};

patches = [
# https://github.com/mathjax/mathjax-node-cli/pull/20
(fetchpatch {
name = "add-package-lock.patch";
url = "https://github.com/mathjax/mathjax-node-cli/commit/ac304d896d840dc5004045f012abab40648d20fd.patch";
hash = "sha256-kIfxF5II/PHtzBhhMbO2RcEuZQCNFrLeAnL536WBXq8=";
})
];

npmDepsHash = "sha256-gGTRr8CN6aP/T/jUqt4E53DYVaz7ykaoG519+3sPdXo=";

dontNpmBuild = true;

meta = {
description = "CLI tools for mathjax-node";
homepage = "https://github.com/mathjax/mathjax-node-cli";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ colinsane ];
};
}
1 change: 1 addition & 0 deletions pkgs/development/node-packages/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ mapAliases {
manta = pkgs.node-manta; # Added 2023-05-06
markdownlint-cli = pkgs.markdownlint-cli; # added 2023-07-29
inherit (pkgs) markdownlint-cli2; # added 2023-08-22
inherit (pkgs) mathjax-node-cli; # added 2023-11-02
mdctl-cli = self."@medable/mdctl-cli"; # added 2023-08-21
inherit (pkgs) mermaid-cli; # added 2023-10-01
musescore-downloader = pkgs.dl-librescore; # added 2023-08-19
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/node-packages/node-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@
, "markdown-link-check"
, "mastodon-bot"
, "mathjax"
, "mathjax-node-cli"
, "meat"
, "mocha"
, "multi-file-swagger"
Expand Down
206 changes: 0 additions & 206 deletions pkgs/development/node-packages/node-packages.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab5d876

Please sign in to comment.