From 44956ebcbcc86a54f3e26dc45d29bd585c897d86 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Wed, 21 Jun 2023 10:16:13 -0700 Subject: [PATCH] npm-check: init at 6.0.1 (#237510) * npm-check: init at 6.0.1 * Update pkgs/development/tools/npm-check/default.nix Co-authored-by: OTABI Tomoya * Update pkgs/development/tools/npm-check/default.nix Co-authored-by: OTABI Tomoya * Fix semicolon * Add changelog * Update pkgs/development/tools/npm-check/default.nix Co-authored-by: OTABI Tomoya --------- Co-authored-by: OTABI Tomoya --- pkgs/development/tools/npm-check/default.nix | 30 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/tools/npm-check/default.nix diff --git a/pkgs/development/tools/npm-check/default.nix b/pkgs/development/tools/npm-check/default.nix new file mode 100644 index 000000000000..3e1ad56e4414 --- /dev/null +++ b/pkgs/development/tools/npm-check/default.nix @@ -0,0 +1,30 @@ +{ buildNpmPackage +, fetchFromGitHub +, lib +}: + +buildNpmPackage rec { + pname = "npm-check"; + version = "6.0.1"; + + src = fetchFromGitHub { + owner = "dylang"; + repo = "npm-check"; + rev = "v${version}"; + hash = "sha256-F7bMvGqOxJzoaw25VR6D90UNwT8HxZ4PZhhQEvQFDn4="; + }; + + npmDepsHash = "sha256-KRLgLWikcCWMF8/cOxThom6DHE9ar6WO/9HtosJQnLE="; + + npmFlags = [ "--legacy-peer-deps" ]; + + dontNpmBuild = true; + + meta = with lib; { + description = "Check for outdated, incorrect, and unused dependencies"; + homepage = "https://github.com/dylang/npm-check"; + changelog = "https://github.com/dylang/npm-check/releases/tag/v${version}"; + license = licenses.mit; + maintainers = [ maintainers.thomasjm ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 706e935d7d05..5a915ef484ca 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10611,6 +10611,8 @@ with pkgs; notable = callPackage ../applications/misc/notable { }; + npm-check = callPackage ../development/tools/npm-check { }; + nth = with python3Packages; toPythonApplication name-that-hash; ntlmrecon = callPackage ../tools/security/ntlmrecon { };