Merge pull request #250875 from dotlambda/npm-check-updates-buildNpmPackage

npm-check-updates: use buildNpmPackage

authored by

Robert Schütz and committed by
GitHub
4f00a0a5 78222904

+30 -433
+1
pkgs/development/node-packages/aliases.nix
··· 80 80 inherit (pkgs) markdownlint-cli2; # added 2023-08-22 81 81 mdctl-cli = self."@medable/mdctl-cli"; # added 2023-08-21 82 82 node-inspector = throw "node-inspector was removed because it was broken"; # added 2023-08-21 83 + inherit (pkgs) npm-check-updates; # added 2023-08-22 83 84 readability-cli = pkgs.readability-cli; # Added 2023-06-12 84 85 reveal-md = pkgs.reveal-md; # added 2023-07-31 85 86 s3http = throw "s3http was removed because it was abandoned upstream"; # added 2023-08-18
-1
pkgs/development/node-packages/node-packages.json
··· 204 204 , "nodemon" 205 205 , "np" 206 206 , "npm" 207 - , "npm-check-updates" 208 207 , "npm-merge-driver" 209 208 , "nrm" 210 209 , "ocaml-language-server"
-432
pkgs/development/node-packages/node-packages.nix
··· 101470 101470 bypassCache = true; 101471 101471 reconstructLock = true; 101472 101472 }; 101473 - npm-check-updates = nodeEnv.buildNodePackage { 101474 - name = "npm-check-updates"; 101475 - packageName = "npm-check-updates"; 101476 - version = "16.13.0"; 101477 - src = fetchurl { 101478 - url = "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-16.13.0.tgz"; 101479 - sha512 = "zTJCqov2+KpCLM7lOOxXLFiqKg8RLt10dempIbE9EfKCzoN1yqSrDcBCpU6uOmlSRy3IIGm1rK+piCrn+uulJw=="; 101480 - }; 101481 - dependencies = [ 101482 - sources."@colors/colors-1.5.0" 101483 - (sources."@isaacs/cliui-8.0.2" // { 101484 - dependencies = [ 101485 - sources."ansi-regex-6.0.1" 101486 - sources."emoji-regex-9.2.2" 101487 - sources."string-width-5.1.2" 101488 - sources."strip-ansi-7.1.0" 101489 - ]; 101490 - }) 101491 - sources."@nodelib/fs.scandir-2.1.5" 101492 - sources."@nodelib/fs.stat-2.0.5" 101493 - sources."@nodelib/fs.walk-1.2.8" 101494 - sources."@npmcli/fs-3.1.0" 101495 - (sources."@npmcli/git-4.1.0" // { 101496 - dependencies = [ 101497 - sources."which-3.0.1" 101498 - ]; 101499 - }) 101500 - sources."@npmcli/installed-package-contents-2.0.2" 101501 - sources."@npmcli/node-gyp-3.0.0" 101502 - (sources."@npmcli/promise-spawn-6.0.2" // { 101503 - dependencies = [ 101504 - sources."which-3.0.1" 101505 - ]; 101506 - }) 101507 - (sources."@npmcli/run-script-6.0.2" // { 101508 - dependencies = [ 101509 - sources."which-3.0.1" 101510 - ]; 101511 - }) 101512 - sources."@pnpm/config.env-replace-1.1.0" 101513 - (sources."@pnpm/network.ca-file-1.0.2" // { 101514 - dependencies = [ 101515 - sources."graceful-fs-4.2.10" 101516 - ]; 101517 - }) 101518 - sources."@pnpm/npm-conf-2.2.2" 101519 - sources."@sigstore/bundle-1.1.0" 101520 - sources."@sigstore/protobuf-specs-0.2.1" 101521 - sources."@sigstore/sign-1.0.0" 101522 - sources."@sigstore/tuf-1.0.3" 101523 - sources."@sindresorhus/is-5.6.0" 101524 - sources."@szmarczak/http-timer-5.0.1" 101525 - sources."@tootallnate/once-2.0.0" 101526 - sources."@tufjs/canonical-json-1.0.0" 101527 - sources."@tufjs/models-1.0.4" 101528 - sources."@types/http-cache-semantics-4.0.1" 101529 - sources."abbrev-1.1.1" 101530 - sources."agent-base-6.0.2" 101531 - sources."agentkeepalive-4.5.0" 101532 - sources."aggregate-error-3.1.0" 101533 - sources."ansi-align-3.0.1" 101534 - sources."ansi-regex-5.0.1" 101535 - sources."ansi-styles-6.2.1" 101536 - sources."aproba-2.0.0" 101537 - sources."are-we-there-yet-3.0.1" 101538 - sources."argparse-2.0.1" 101539 - sources."array-union-2.1.0" 101540 - sources."balanced-match-1.0.2" 101541 - (sources."boxen-7.1.1" // { 101542 - dependencies = [ 101543 - sources."ansi-regex-6.0.1" 101544 - sources."emoji-regex-9.2.2" 101545 - sources."string-width-5.1.2" 101546 - sources."strip-ansi-7.1.0" 101547 - ]; 101548 - }) 101549 - sources."brace-expansion-2.0.1" 101550 - sources."braces-3.0.2" 101551 - sources."buffer-from-1.1.2" 101552 - sources."builtins-5.0.1" 101553 - (sources."cacache-17.1.4" // { 101554 - dependencies = [ 101555 - sources."minipass-7.0.3" 101556 - ]; 101557 - }) 101558 - sources."cacheable-lookup-7.0.0" 101559 - sources."cacheable-request-10.2.13" 101560 - sources."camelcase-7.0.1" 101561 - sources."chalk-5.3.0" 101562 - sources."chownr-2.0.0" 101563 - sources."ci-info-3.8.0" 101564 - sources."clean-stack-2.2.0" 101565 - sources."cli-boxes-3.0.0" 101566 - sources."cli-table3-0.6.3" 101567 - sources."color-convert-2.0.1" 101568 - sources."color-name-1.1.4" 101569 - sources."color-support-1.1.3" 101570 - sources."commander-10.0.1" 101571 - sources."concat-map-0.0.1" 101572 - (sources."config-chain-1.1.13" // { 101573 - dependencies = [ 101574 - sources."ini-1.3.8" 101575 - ]; 101576 - }) 101577 - sources."configstore-6.0.0" 101578 - sources."console-control-strings-1.1.0" 101579 - sources."cross-spawn-7.0.3" 101580 - (sources."crypto-random-string-4.0.0" // { 101581 - dependencies = [ 101582 - sources."type-fest-1.4.0" 101583 - ]; 101584 - }) 101585 - (sources."debug-4.3.4" // { 101586 - dependencies = [ 101587 - sources."ms-2.1.2" 101588 - ]; 101589 - }) 101590 - (sources."decompress-response-6.0.0" // { 101591 - dependencies = [ 101592 - sources."mimic-response-3.1.0" 101593 - ]; 101594 - }) 101595 - sources."deep-extend-0.6.0" 101596 - sources."defer-to-connect-2.0.1" 101597 - sources."delegates-1.0.0" 101598 - sources."dir-glob-3.0.1" 101599 - sources."dot-prop-6.0.1" 101600 - sources."eastasianwidth-0.2.0" 101601 - sources."emoji-regex-8.0.0" 101602 - sources."env-paths-2.2.1" 101603 - sources."err-code-2.0.3" 101604 - sources."escape-goat-4.0.0" 101605 - sources."exponential-backoff-3.1.1" 101606 - sources."fast-glob-3.3.1" 101607 - sources."fast-memoize-2.5.2" 101608 - sources."fastq-1.15.0" 101609 - sources."fill-range-7.0.1" 101610 - sources."find-up-5.0.0" 101611 - sources."foreground-child-3.1.1" 101612 - sources."form-data-encoder-2.1.4" 101613 - sources."fp-and-or-0.1.3" 101614 - (sources."fs-minipass-3.0.3" // { 101615 - dependencies = [ 101616 - sources."minipass-7.0.3" 101617 - ]; 101618 - }) 101619 - sources."fs.realpath-1.0.0" 101620 - sources."function-bind-1.1.1" 101621 - (sources."gauge-4.0.4" // { 101622 - dependencies = [ 101623 - sources."signal-exit-3.0.7" 101624 - ]; 101625 - }) 101626 - sources."get-stdin-8.0.0" 101627 - sources."get-stream-6.0.1" 101628 - sources."glob-10.3.3" 101629 - sources."glob-parent-5.1.2" 101630 - (sources."global-dirs-3.0.1" // { 101631 - dependencies = [ 101632 - sources."ini-2.0.0" 101633 - ]; 101634 - }) 101635 - sources."globby-11.1.0" 101636 - sources."got-12.6.1" 101637 - sources."graceful-fs-4.2.11" 101638 - sources."has-1.0.3" 101639 - sources."has-unicode-2.0.1" 101640 - sources."has-yarn-3.0.0" 101641 - sources."hosted-git-info-5.2.1" 101642 - sources."http-cache-semantics-4.1.1" 101643 - sources."http-proxy-agent-5.0.0" 101644 - sources."http2-wrapper-2.2.0" 101645 - sources."https-proxy-agent-5.0.1" 101646 - sources."humanize-ms-1.2.1" 101647 - sources."ignore-5.2.4" 101648 - sources."ignore-walk-6.0.3" 101649 - sources."import-lazy-4.0.0" 101650 - sources."imurmurhash-0.1.4" 101651 - sources."indent-string-4.0.0" 101652 - sources."inflight-1.0.6" 101653 - sources."inherits-2.0.4" 101654 - sources."ini-4.1.1" 101655 - sources."ip-2.0.0" 101656 - sources."is-ci-3.0.1" 101657 - sources."is-core-module-2.13.0" 101658 - sources."is-extglob-2.1.1" 101659 - sources."is-fullwidth-code-point-3.0.0" 101660 - sources."is-glob-4.0.3" 101661 - sources."is-installed-globally-0.4.0" 101662 - sources."is-lambda-1.0.1" 101663 - sources."is-npm-6.0.0" 101664 - sources."is-number-7.0.0" 101665 - sources."is-obj-2.0.0" 101666 - sources."is-path-inside-3.0.3" 101667 - sources."is-typedarray-1.0.0" 101668 - sources."is-yarn-global-0.4.1" 101669 - sources."isexe-2.0.0" 101670 - sources."jackspeak-2.3.0" 101671 - sources."jju-1.4.0" 101672 - sources."js-yaml-4.1.0" 101673 - sources."json-buffer-3.0.1" 101674 - sources."json-parse-even-better-errors-3.0.0" 101675 - sources."json-parse-helpfulerror-1.0.3" 101676 - sources."json5-2.2.3" 101677 - sources."jsonlines-0.1.1" 101678 - sources."jsonparse-1.3.1" 101679 - sources."keyv-4.5.3" 101680 - sources."kleur-4.1.5" 101681 - sources."latest-version-7.0.0" 101682 - sources."locate-path-6.0.0" 101683 - sources."lodash-4.17.21" 101684 - sources."lowercase-keys-3.0.0" 101685 - sources."lru-cache-7.18.3" 101686 - sources."make-fetch-happen-11.1.1" 101687 - sources."merge2-1.4.1" 101688 - sources."micromatch-4.0.5" 101689 - sources."mimic-response-4.0.0" 101690 - sources."minimatch-9.0.3" 101691 - sources."minimist-1.2.8" 101692 - sources."minipass-5.0.0" 101693 - (sources."minipass-collect-1.0.2" // { 101694 - dependencies = [ 101695 - sources."minipass-3.3.6" 101696 - ]; 101697 - }) 101698 - (sources."minipass-fetch-3.0.4" // { 101699 - dependencies = [ 101700 - sources."minipass-7.0.3" 101701 - ]; 101702 - }) 101703 - (sources."minipass-flush-1.0.5" // { 101704 - dependencies = [ 101705 - sources."minipass-3.3.6" 101706 - ]; 101707 - }) 101708 - (sources."minipass-json-stream-1.0.1" // { 101709 - dependencies = [ 101710 - sources."minipass-3.3.6" 101711 - ]; 101712 - }) 101713 - (sources."minipass-pipeline-1.2.4" // { 101714 - dependencies = [ 101715 - sources."minipass-3.3.6" 101716 - ]; 101717 - }) 101718 - (sources."minipass-sized-1.0.3" // { 101719 - dependencies = [ 101720 - sources."minipass-3.3.6" 101721 - ]; 101722 - }) 101723 - (sources."minizlib-2.1.2" // { 101724 - dependencies = [ 101725 - sources."minipass-3.3.6" 101726 - ]; 101727 - }) 101728 - sources."mkdirp-1.0.4" 101729 - sources."ms-2.1.3" 101730 - sources."negotiator-0.6.3" 101731 - (sources."node-gyp-9.4.0" // { 101732 - dependencies = [ 101733 - sources."brace-expansion-1.1.11" 101734 - sources."glob-7.2.3" 101735 - sources."minimatch-3.1.2" 101736 - sources."rimraf-3.0.2" 101737 - ]; 101738 - }) 101739 - sources."nopt-6.0.0" 101740 - (sources."normalize-package-data-5.0.0" // { 101741 - dependencies = [ 101742 - sources."hosted-git-info-6.1.1" 101743 - ]; 101744 - }) 101745 - sources."normalize-url-8.0.0" 101746 - sources."npm-bundled-3.0.0" 101747 - sources."npm-install-checks-6.2.0" 101748 - sources."npm-normalize-package-bin-3.0.1" 101749 - (sources."npm-package-arg-10.1.0" // { 101750 - dependencies = [ 101751 - sources."hosted-git-info-6.1.1" 101752 - ]; 101753 - }) 101754 - sources."npm-packlist-7.0.4" 101755 - sources."npm-pick-manifest-8.0.2" 101756 - sources."npm-registry-fetch-14.0.5" 101757 - sources."npmlog-6.0.2" 101758 - sources."once-1.4.0" 101759 - sources."p-cancelable-3.0.0" 101760 - sources."p-limit-3.1.0" 101761 - sources."p-locate-5.0.0" 101762 - sources."p-map-4.0.0" 101763 - sources."package-json-8.1.1" 101764 - sources."pacote-15.2.0" 101765 - sources."parse-github-url-1.0.2" 101766 - sources."path-exists-4.0.0" 101767 - sources."path-is-absolute-1.0.1" 101768 - sources."path-key-3.1.1" 101769 - (sources."path-scurry-1.10.1" // { 101770 - dependencies = [ 101771 - sources."lru-cache-10.0.1" 101772 - ]; 101773 - }) 101774 - sources."path-type-4.0.0" 101775 - sources."picomatch-2.3.1" 101776 - sources."proc-log-3.0.0" 101777 - sources."progress-2.0.3" 101778 - sources."promise-inflight-1.0.1" 101779 - sources."promise-retry-2.0.1" 101780 - sources."prompts-ncu-3.0.0" 101781 - sources."proto-list-1.2.4" 101782 - sources."pupa-3.1.0" 101783 - sources."queue-microtask-1.2.3" 101784 - sources."quick-lru-5.1.1" 101785 - (sources."rc-1.2.8" // { 101786 - dependencies = [ 101787 - sources."ini-1.3.8" 101788 - sources."strip-json-comments-2.0.1" 101789 - ]; 101790 - }) 101791 - sources."rc-config-loader-4.1.3" 101792 - sources."read-package-json-6.0.4" 101793 - sources."read-package-json-fast-3.0.2" 101794 - sources."readable-stream-3.6.2" 101795 - sources."registry-auth-token-5.0.2" 101796 - sources."registry-url-6.0.1" 101797 - sources."remote-git-tags-3.0.0" 101798 - sources."require-from-string-2.0.2" 101799 - sources."resolve-alpn-1.2.1" 101800 - sources."responselike-3.0.0" 101801 - sources."retry-0.12.0" 101802 - sources."reusify-1.0.4" 101803 - sources."rimraf-5.0.1" 101804 - sources."run-parallel-1.2.0" 101805 - sources."safe-buffer-5.2.1" 101806 - (sources."semver-7.5.4" // { 101807 - dependencies = [ 101808 - sources."lru-cache-6.0.0" 101809 - ]; 101810 - }) 101811 - sources."semver-diff-4.0.0" 101812 - sources."semver-utils-1.1.4" 101813 - sources."set-blocking-2.0.0" 101814 - sources."shebang-command-2.0.0" 101815 - sources."shebang-regex-3.0.0" 101816 - sources."signal-exit-4.1.0" 101817 - sources."sigstore-1.9.0" 101818 - sources."sisteransi-1.0.5" 101819 - sources."slash-3.0.0" 101820 - sources."smart-buffer-4.2.0" 101821 - sources."socks-2.7.1" 101822 - sources."socks-proxy-agent-7.0.0" 101823 - sources."source-map-0.6.1" 101824 - sources."source-map-support-0.5.21" 101825 - sources."spawn-please-2.0.2" 101826 - sources."spdx-correct-3.2.0" 101827 - sources."spdx-exceptions-2.3.0" 101828 - sources."spdx-expression-parse-3.0.1" 101829 - sources."spdx-license-ids-3.0.13" 101830 - (sources."ssri-10.0.5" // { 101831 - dependencies = [ 101832 - sources."minipass-7.0.3" 101833 - ]; 101834 - }) 101835 - sources."string-width-4.2.3" 101836 - sources."string-width-cjs-4.2.3" 101837 - sources."string_decoder-1.3.0" 101838 - sources."strip-ansi-6.0.1" 101839 - sources."strip-ansi-cjs-6.0.1" 101840 - sources."strip-json-comments-5.0.1" 101841 - (sources."tar-6.1.15" // { 101842 - dependencies = [ 101843 - (sources."fs-minipass-2.1.0" // { 101844 - dependencies = [ 101845 - sources."minipass-3.3.6" 101846 - ]; 101847 - }) 101848 - ]; 101849 - }) 101850 - sources."to-regex-range-5.0.1" 101851 - sources."tuf-js-1.1.7" 101852 - sources."type-fest-2.19.0" 101853 - sources."typedarray-to-buffer-3.1.5" 101854 - sources."unique-filename-3.0.0" 101855 - sources."unique-slug-4.0.0" 101856 - sources."unique-string-3.0.0" 101857 - sources."untildify-4.0.0" 101858 - sources."update-notifier-6.0.2" 101859 - sources."util-deprecate-1.0.2" 101860 - sources."validate-npm-package-license-3.0.4" 101861 - sources."validate-npm-package-name-5.0.0" 101862 - sources."which-2.0.2" 101863 - sources."wide-align-1.1.5" 101864 - (sources."widest-line-4.0.1" // { 101865 - dependencies = [ 101866 - sources."ansi-regex-6.0.1" 101867 - sources."emoji-regex-9.2.2" 101868 - sources."string-width-5.1.2" 101869 - sources."strip-ansi-7.1.0" 101870 - ]; 101871 - }) 101872 - (sources."wrap-ansi-8.1.0" // { 101873 - dependencies = [ 101874 - sources."ansi-regex-6.0.1" 101875 - sources."emoji-regex-9.2.2" 101876 - sources."string-width-5.1.2" 101877 - sources."strip-ansi-7.1.0" 101878 - ]; 101879 - }) 101880 - (sources."wrap-ansi-cjs-7.0.0" // { 101881 - dependencies = [ 101882 - sources."ansi-styles-4.3.0" 101883 - ]; 101884 - }) 101885 - sources."wrappy-1.0.2" 101886 - (sources."write-file-atomic-3.0.3" // { 101887 - dependencies = [ 101888 - sources."signal-exit-3.0.7" 101889 - ]; 101890 - }) 101891 - sources."xdg-basedir-5.1.0" 101892 - sources."yallist-4.0.0" 101893 - sources."yocto-queue-0.1.0" 101894 - ]; 101895 - buildInputs = globalBuildInputs; 101896 - meta = { 101897 - description = "Find newer versions of dependencies than what your package.json allows"; 101898 - homepage = "https://github.com/raineorshine/npm-check-updates"; 101899 - license = "Apache-2.0"; 101900 - }; 101901 - production = true; 101902 - bypassCache = true; 101903 - reconstructLock = true; 101904 - }; 101905 101473 npm-merge-driver = nodeEnv.buildNodePackage { 101906 101474 name = "npm-merge-driver"; 101907 101475 packageName = "npm-merge-driver";
+27
pkgs/tools/package-management/npm-check-updates/default.nix
··· 1 + { lib 2 + , buildNpmPackage 3 + , fetchFromGitHub 4 + }: 5 + 6 + buildNpmPackage rec { 7 + pname = "npm-check-updates"; 8 + version = "16.13.0"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "raineorshine"; 12 + repo = "npm-check-updates"; 13 + rev = "v${version}"; 14 + hash = "sha256-RrNO1TAPNFB/6JWY8xZjNCZ+FDgM0MCn7vaDXoCSIfI="; 15 + }; 16 + 17 + npmDepsHash = "sha256-aghW4d3/8cJmwpmI5PcHioCnc91Yu4N5EfwuoaB5Xqw="; 18 + 19 + meta = { 20 + changelog = "https://github.com/raineorshine/npm-check-updates/blob/${src.rev}/CHANGELOG.md"; 21 + description = "Find newer versions of package dependencies than what your package.json allows"; 22 + homepage = "https://github.com/raineorshine/npm-check-updates"; 23 + license = lib.licenses.asl20; 24 + mainProgram = "ncu"; 25 + maintainers = with lib.maintainers; [ flosse ]; 26 + }; 27 + }
+2
pkgs/top-level/all-packages.nix
··· 1892 1892 1893 1893 nominatim = callPackage ../servers/nominatim { }; 1894 1894 1895 + npm-check-updates = callPackage ../tools/package-management/npm-check-updates { }; 1896 + 1895 1897 ntpd-rs = callPackage ../tools/networking/ntpd-rs { }; 1896 1898 1897 1899 ocs-url = libsForQt5.callPackage ../tools/misc/ocs-url { };