nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 38 lines 1.1 kB view raw
1{ 2 buildNpmPackage, 3 fetchFromGitHub, 4 lib, 5}: 6 7buildNpmPackage (finalAttrs: { 8 pname = "markdown-toc"; 9 version = "1.2.0"; 10 11 src = fetchFromGitHub { 12 owner = "jonschlinkert"; 13 repo = "markdown-toc"; 14 tag = finalAttrs.version; 15 hash = "sha256-CgyAxXcLrdk609qoXjyUgpA+NIlWrkBsE7lf5YnPagQ="; 16 }; 17 18 # This package has no build script so the `devDependencies` are unnecessary. 19 patches = [ ./no-dev-deps.patch ]; 20 # Because we reduced the size of `package-lock.json` by omitting 21 # `devDependencies`, it no longer contains any package versions that were 22 # published after 2023, meaning it would likely not change if it were 23 # regenerated again in the future. 24 postPatch = '' 25 cp ${./package-lock.json} ./package-lock.json 26 ''; 27 npmDepsHash = "sha256-2WDlZ4OD/R+3ya0AE9rPRHXbCTVbmiyXtaRrgCS/jGo="; 28 29 dontNpmBuild = true; 30 31 meta = { 32 description = "API and CLI for generating a markdown TOC (table of contents)"; 33 homepage = "https://github.com/jonschlinkert/markdown-toc"; 34 license = lib.licenses.mit; 35 mainProgram = "markdown-toc"; 36 maintainers = with lib.maintainers; [ samestep ]; 37 }; 38})